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

Commit

Permalink
fixes guard-in
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardenian committed Apr 8, 2017
1 parent c56d294 commit ccf127c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/stable.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ var idrinth = {
reload: function ( ) {
window.clearTimeout ( idrinth.core.timeouts.next );
idrinth.ui.removeElement ( 'idotd-base' );
for (var event in idrinth.core.multibind.events) {
document.getElementsByTagName ( 'body' )[0].removeEventListener ( event, idrinth.core.multibind.triggered );
for ( var event in idrinth.core.multibind.events ) {
if ( idrinth.core.multibind.events.hasOwnProperty( event ) ) {
document.getElementsByTagName( 'body' )[0].removeEventListener( event, idrinth.core.multibind.triggered );
}
}
for (var observer in idrinth.observer.list) {
idrinth.observer.list[observer].disconnect();
if ( idrinth.observer.list.hasOwnProperty( observer ) ) {
idrinth.observer.list[observer].disconnect();
}
}
window.setTimeout ( function () {
idrinth = { };
Expand Down

0 comments on commit ccf127c

Please sign in to comment.