Skip to content
Permalink
Browse files

Widget factory: Make methods chainable if the return value is undefin…

…ed. Fixed #4601 (Allow undefined return value for chainable method calls).
  • Loading branch information...
scottgonzalez committed Jun 15, 2009
1 parent d8d7cf2 commit 58b37be5acf86913900b51d92eaa3cbb38b14f91
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.core.js
@@ -244,7 +244,7 @@ $.widget = function(name, prototype) {
methodValue = (instance && $.isFunction(instance[options])
? instance[options].apply(instance, args)
: instance);
if (methodValue !== instance) {
if (methodValue !== instance && methodValue !== undefined) {
returnValue = methodValue;
return false;
}

0 comments on commit 58b37be

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