Skip to content

Commit

Permalink
Merge pull request fat#17 from antonkovalyov/master
Browse files Browse the repository at this point in the history
Fixed a bug with IE8 blowing up when .apply is called with the explicit second parameter set to undefined
  • Loading branch information
fat committed Jul 13, 2011
2 parents 39bb1e2 + 172e44d commit af12f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bean.js
Expand Up @@ -184,13 +184,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 af12f3e

Please sign in to comment.