MCPcopy Create free account
hub / github.com/microsoft/SandDance / enableEventType

Method enableEventType

docs/app/js/sanddance-app.js:94866–94872  ·  view source on GitHub ↗

* Enable this input (begin processing events) * if the specified event type is among those handled by this input.

(eventType, enabled)

Source from the content-addressed store, hash-verified

94864 * Enable this input (begin processing events)
94865 * if the specified event type is among those handled by this input.
94866 */ enableEventType(eventType, enabled) {
94867 if (eventType === MOVE_EVENT_TYPE) this.enableMoveEvent = enabled;
94868 if (eventType === OVER_EVENT_TYPE) this.enableOverEvent = enabled;
94869 if (eventType === OUT_EVENT_TYPE) this.enableOutEvent = enabled;
94870 if (eventType === ENTER_EVENT_TYPE) this.enableEnterEvent = enabled;
94871 if (eventType === LEAVE_EVENT_TYPE) this.enableLeaveEvent = enabled;
94872 }
94873 handleOverEvent(event) {
94874 if (this.enableOverEvent) {
94875 if (event.type === "mouseover") this._emit(OVER_EVENT_TYPE, event);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected