mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Widget factory: Prevent calling non-existent methods.
This commit is contained in:
parent
41811fb8c3
commit
f500db5d75
@ -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));
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user