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 7b96ced5a..d033a8cc0 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -101,7 +101,7 @@ $.widget = function(name, prototype) {
return this.each(function() {
var instance = $.data(this, name);
- if (isMethodCall && instance) {
+ if (isMethodCall && instance && $.isFunction(instance[options])) {
instance[options].apply(instance, args);
} else if (!isMethodCall) {
$.data(this, name, new $[namespace][name](this, options));