aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 fe2d228e3..eb0420c62 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -244,7 +244,7 @@ $.widget = function(name, prototype) {
methodValue = (instance && $.isFunction(instance[options])
? instance[options].apply(instance, args)
: instance);
- if (methodValue !== instance) {
+ if (methodValue !== instance && methodValue !== undefined) {
returnValue = methodValue;
return false;
}