@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
33 lines (26 loc) • 562 B
JavaScript
export class DomElementBinding {
constructor() {
/**
*
* @type {Element}
*/
this.element = null;
/**
*
* @type {DomElementBindingDescription}
*/
this.description = null;
/**
*
* @type {DomElementProcessor}
*/
this.processor = null;
}
bind() {
this.processor.el = this.element;
this.processor.startup();
}
unbind() {
this.processor.shutdown();
}
}