Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed May 4, 2011
1 parent 2671ccd commit 7dcc0ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bean.js
Expand Up @@ -57,7 +57,7 @@


customHandler = function (element, fn, type, condition, args) { customHandler = function (element, fn, type, condition, args) {
return function (event) { return function (event) {
if (condition ? condition.call(this, event) : event && event.propertyName == '_on' + type || !event) { if (condition ? condition.call(this, event) : W3C_MODEL ? true : event && event.propertyName == '_on' + type || !event) {
fn.apply(element, [event].concat(args)); fn.apply(element, [event].concat(args));
} }
}; };
Expand All @@ -78,7 +78,7 @@
} }
var isNative = nativeEvents[type]; var isNative = nativeEvents[type];
fn = isNative ? nativeHandler(element, fn, args) : customHandler(element, fn, type, false, args); fn = isNative ? nativeHandler(element, fn, args) : customHandler(element, fn, type, false, args);
isNaive = W3C_MODEL || isNative; isNative = W3C_MODEL || isNative;
if (type == 'unload') { if (type == 'unload') {
var org = fn; var org = fn;
fn = function () { fn = function () {
Expand Down Expand Up @@ -183,7 +183,7 @@
handlers[isNamespace[k]] && handlers[isNamespace[k]].apply(element, args); handlers[isNamespace[k]] && handlers[isNamespace[k]].apply(element, args);
} }
} else if (!args && element[eventSupport]) { } else if (!args && element[eventSupport]) {
fireListener(isNative, type, element, args); fireListener(isNative, type, element);
} else { } else {
for (k in handlers) { for (k in handlers) {
handlers.hasOwnProperty(k) && handlers[k].apply(element, args); handlers.hasOwnProperty(k) && handlers[k].apply(element, args);
Expand Down
2 changes: 1 addition & 1 deletion bean.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7dcc0ea

Please sign in to comment.