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

Commit

Permalink
fixing event binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Idrinth committed Jan 31, 2017
1 parent 02f9d2c commit 807af53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mods/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ idrinth.core = {
idrinth.core.multibind.events[event][selector].push ( method );
};
if ( !idrinth.core.multibind.events[event] ) {
idrinth.ui.base.addEventListener ( event, idrinth.core.multibind.triggered );
document.getElementsByTagName ( 'body' )[0].addEventListener ( event, idrinth.core.multibind.triggered );
}
bind ( event, selector, method );
},
Expand Down

0 comments on commit 807af53

Please sign in to comment.