detachEvent

detaches a handler from an event (which was attached before by the attachEvent method)

void detachEvent(string id);

Parameters

idstringthe event id (the result of the attachEvent operation)

Example

var myEvent = $$("fmanager").attachEvent("onItemSelect", function(){
    // ...event handler code
});
// ...
$$("fmanager").detachEvent(myEvent);

See also
Back to top