no need to bind destroy, event handlers are called with the component as context

pull/755/head
Rich Harris 8 years ago
parent 86fb0e4ced
commit faf1eeea2f

@ -207,7 +207,7 @@ export default function dom(
}; };
this._handlers = Object.create( null ); this._handlers = Object.create( null );
${templateProperties.ondestroy && `this._handlers.destroy = [@template.ondestroy.bind(this)]`} ${templateProperties.ondestroy && `this._handlers.destroy = [@template.ondestroy]`}
this._root = options._root || this; this._root = options._root || this;
this._yield = options._yield; this._yield = options._yield;

Loading…
Cancel
Save