Skip to content
Permalink
Browse files

Widget factory: Prevent calling non-existent methods.

  • Loading branch information
scottgonzalez committed Sep 7, 2008
1 parent 41811fb commit f500db5d75b1cff6ff2344833079962977f8abb4
Showing with 1 addition and 1 deletion.
  1. +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));
});
};

0 comments on commit f500db5

Please sign in to comment.
You can’t perform that action at this time.