Permalink
Browse files

Fixed bug regarding removal of events in mootools adapter

  • Loading branch information...
1 parent 512b305 commit 47c86fe7e8effd602e16b0b0b5b5a59a48b7dcbc @eolsson eolsson committed Jul 6, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 js/adapters/mootools-adapter.src.js
@@ -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();
}
},

0 comments on commit 47c86fe

Please sign in to comment.