detachEvent Method

Detaches the event so that it no longer calls the specified function when it fires.

detachEvent(sEvent, fpNotify);

 

Parameter

Description

sEvent

The name of the event generating the call.

fpNotify

The function that was specified to be called when the event fires.

Remarks

For a list of Skyline Globe Control events, see SGWorld Events.

Because multiple functions can be attached to a single event, the client must specify both the event name and the specific function handler to detach from the event.