detachEvent

이전에 attachEvent 메서드를 사용하여 추가한 이벤트 핸들러를 제거합니다.

void detachEvent(string id);
idstring이벤트 핸들러의 식별자

Example

var myEvent = scheduler.attachEvent("onClick", function (id){
    ...//event handler 코드
});
...
scheduler.detachEvent(myEvent);

Details

event를 통해 추가된 모든 이벤트 리스너는 destructor가 호출될 때 자동으로 제거됩니다.

See also
맨 위로