Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Widget factory: Prevent calling non-existent methods.
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
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)); |
|
|
}); |
|
|
}; |
|
|