diff options
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 2 |
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()); } }; |