Permalink
Browse files

rebuild

  • Loading branch information...
1 parent 2671ccd commit 7dcc0ea888bf2b99bdf74a34b5cf2ef8eda8620b @fat committed May 4, 2011
Showing with 4 additions and 4 deletions.
  1. +3 −3 bean.js
  2. +1 −1 bean.min.js
View
@@ -57,7 +57,7 @@
customHandler = function (element, fn, type, condition, args) {
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));
}
};
@@ -78,7 +78,7 @@
}
var isNative = nativeEvents[type];
fn = isNative ? nativeHandler(element, fn, args) : customHandler(element, fn, type, false, args);
- isNaive = W3C_MODEL || isNative;
+ isNative = W3C_MODEL || isNative;
if (type == 'unload') {
var org = fn;
fn = function () {
@@ -183,7 +183,7 @@
handlers[isNamespace[k]] && handlers[isNamespace[k]].apply(element, args);
}
} else if (!args && element[eventSupport]) {
- fireListener(isNative, type, element, args);
+ fireListener(isNative, type, element);
} else {
for (k in handlers) {
handlers.hasOwnProperty(k) && handlers[k].apply(element, args);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 7dcc0ea

Please sign in to comment.