detachEvent

detaches a handler from an event

void detachEvent(number id);

Parameters

idnumberinternal event id, returned by attachEvent()

Example

// attach event
var evId = myComponent.attachEvent("eventName", function(){
    // your code here
});
 
// detach event
myComponent.detachEvent(evId);

Back to top