이전에 attachEvent 메서드를 사용하여 추가한 이벤트 핸들러를 제거합니다.
id | string | 이벤트 핸들러의 식별자 |
var myEvent = scheduler.attachEvent("onClick", function (id){
...//event handler 코드
});
...
scheduler.detachEvent(myEvent);
event를 통해 추가된 모든 이벤트 리스너는 destructor가 호출될 때 자동으로 제거됩니다.