Namespace | tinymce.dom |
Class | EventUtils |
Method | Defined By |
---|---|
Constructs a new EventUtils instance.
|
EventUtils |
add(o:Element/Document/Window/Array/String, n:String/Array, f:function, s:Object):function
Adds an event handler to the specified object.
|
EventUtils |
cancel(e:Event):Boolean
Cancels an event for both bubbeling and the default browser behavior.
|
EventUtils |
clear(o:Object):void
Clears all events of a specific object.
|
EventUtils |
destroy():void
Destroys the instance.
|
EventUtils |
prevent(e:Event):Boolean
Prevent default browser behvaior of an event.
|
EventUtils |
remove(o:String/Element/Array, n:String, f:function):bool/Array
Removes the specified event handler by name and function from a element or collection of elements.
|
EventUtils |
stop(e:Event):Boolean
Stops propogation/bubbeling of an event.
|
EventUtils |
public
function EventUtils()
public
function add(o:Element/Document/Window/Array/String, n:String/Array, f:function, s:Object):function
o:Element/Document/Window/Array/String | Object or element id string to add event handler to or an array of elements/ids/documents. |
n:String/Array | Name of event handler to add for example: click. |
f:function | Function to execute when the event occurs. |
s:Object | Optional scope to execute the function in. |
public
function cancel(e:Event):Boolean
e:Event | Event object to cancel. |
public
function clear(o:Object):void
o:Object | DOM element or object to remove all events from. |
public
function destroy():void
public
function prevent(e:Event):Boolean
e:Event | Event to prevent default browser behvaior of an event. |
public
function remove(o:String/Element/Array, n:String, f:function):bool/Array
o:String/Element/Array | Element ID string or HTML element or an array of elements or ids to remove handler from. |
n:String | Event handler name like for example: "click" |
f:function | Function to remove. |
public
function stop(e:Event):Boolean
e:Event | Event to cancel bubbeling on. |