Skip to content

Commit

Permalink
Fixed a bug with IE8 blowing up when .apply is called with the explic…
Browse files Browse the repository at this point in the history
…it second parameter set to undefined
  • Loading branch information
valueof committed Jul 11, 2011
1 parent 6d9ff64 commit 172e44d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bean.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@
if (isNamespace) {
isNamespace = isNamespace.split('.');
for (k = isNamespace.length; k--;) {
handlers && handlers[isNamespace[k]] && handlers[isNamespace[k]].apply(element, args);
handlers && handlers[isNamespace[k]] && handlers[isNamespace[k]].apply(element, args || []);
}
} else if (!args && element[eventSupport]) {
fireListener(isNative, type, element);
} else {
for (k in handlers) {
handlers.hasOwnProperty(k) && handlers[k].apply(element, args);
handlers.hasOwnProperty(k) && handlers[k].apply(element, args || []);
}
}
}
Expand Down

0 comments on commit 172e44d

Please sign in to comment.