diff --git a/src/event.js b/src/event.js index 227ac2648..bb3af6e15 100644 --- a/src/event.js +++ b/src/event.js @@ -182,7 +182,7 @@ if (!isString(selector) && !isFunction(callback) && callback !== false) callback = data, data = selector, selector = undefined - if (isFunction(data) || data === false) + if (callback === undefined || data === false) callback = data, data = undefined if (callback === false) callback = returnFalse diff --git a/test/event.html b/test/event.html index d7888bc6a..9cf343240 100644 --- a/test/event.html +++ b/test/event.html @@ -274,6 +274,21 @@