aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2009-01-16 04:27:38 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2009-01-16 04:27:38 +0000
commit9d3b03d5f759cd9474427c94e718a6aa6e923beb (patch)
tree0bb1d20b9e1b8c23a3015c51dc616dfa51f06bd1
parent2809d50800dc0da1d43766f942e2fb9330d1e4c6 (diff)
downloadjquery-ui-9d3b03d5f759cd9474427c94e718a6aa6e923beb.tar.gz
jquery-ui-9d3b03d5f759cd9474427c94e718a6aa6e923beb.zip
Fixed #3841 - check for $.isFunction before trigger
-rw-r--r--ui/ui.core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index c77e99999..458857d14 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -375,7 +375,7 @@ $.widget.prototype = {
this.element.trigger(event, data);
- return !(callback && callback.call(this.element[0], event, data) === false
+ return !($.isFunction(callback) && callback.call(this.element[0], event, data) === false
|| event.isDefaultPrevented());
}
};