diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-09-07 20:50:45 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-09-07 20:50:45 +0000 |
commit | f500db5d75b1cff6ff2344833079962977f8abb4 (patch) | |
tree | bca382c5a38871cbf8d0085384529b615e15d714 | |
parent | 41811fb8c38ec7b182f530f3f38f197db9bb25c4 (diff) | |
download | jquery-ui-f500db5d75b1cff6ff2344833079962977f8abb4.tar.gz jquery-ui-f500db5d75b1cff6ff2344833079962977f8abb4.zip |
Widget factory: Prevent calling non-existent methods.
-rw-r--r-- | ui/ui.core.js | 2 |
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)); }); }; |