CancelEvent < EventArgs

Used to stop event firing. When set to true, no other event handlers will be fired. Here is an example:

$Element("myElement").OnClick.Add(myFunction);
$Element("myElement").OnClick.Add(myFunction2);

function myFunction(e){
    e.CancelEvent = true;
}

function myFunction2(){
    alert("Hey!"); // this will never fire
}

Last edited Mar 26, 2011 at 5:30 PM by dahrkdaiz, version 1

Comments

No comments yet.