aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.core.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.core.js')
-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 8507bb193..9275c5fc1 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -136,7 +136,7 @@ $.widget = function(name, prototype) {
$.data(this, name, new $[namespace][name](this, options)));
// method call
- (instance && isMethodCall &&
+ (instance && isMethodCall && $.isFunction(instance[options]) &&
instance[options].apply(instance, args));
});
};