Event Listeners

addEventListener and removeEventListener work just as they do in regular JavaScript. However, addEventListener in FBJS does not support the useCapture parameter. In addition, Facebook provides the following methods:

listEventListeners(eventName)

Returns an array of identifiers for all events that have been added to this event.

purgeEventListeners(eventName)

Removes all event listeners for the specified event.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.144.229