본문으로 건너뛰기

detachEvent

Description

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

detachEvent: (id: string) => void

Parameters

  • id - (required) string - 이벤트 핸들러의 식별자

Example

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

Details

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

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.