Skip to content

Commit

Permalink
Fixed bug regarding removal of events in mootools adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Olsson committed Jul 6, 2011
1 parent 512b305 commit 47c86fe
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/adapters/mootools-adapter.src.js
Expand Up @@ -204,8 +204,13 @@ win.HighchartsAdapter = {
type = 'beforeunload';
}


el.removeEvent(type, fn);
if (defined(fn)) {
el.removeEvent(type, fn);
} else {
el.removeEvents(type);
}
} else {
el.removeEvents();
}
},

Expand Down

0 comments on commit 47c86fe

Please sign in to comment.