Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Fixes #378
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Dec 16, 2013
1 parent e502294 commit 4652afd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/instance/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@
}
};
var eventName = events.removeEventPrefix(name);
node.addEventListener(eventName, listener, false);
return {
open: function() {
node.addEventListener(eventName, listener, false);
},
close: function() {
log.events && console.log('event.remove: [%s].%s => [%s].%s()"', node.localName, name, model.localName, path);
node.removeEventListener(eventName, listener, false);
Expand Down

0 comments on commit 4652afd

Please sign in to comment.