custom Event with isDefaultPrevented()

Step 1:
dispatchEvent(new Event(“customEvent”, false, true )) [Link]
Step 2:
addEventListener( “customEvent”, handler, false, EventPriority.DEFAULT_HANDLER, true );  [Link]
The EventPriority.DEFAULT_HANDLER enables prevent default

 By Implementing these steps – and plus your custom handling for event.isDefaultPrevented()  enables your custom event to be prevented from action. Example: [Link]

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: