aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-06-15 02:01:11 +0000
committerScott González <scott.gonzalez@gmail.com>2009-06-15 02:01:11 +0000
commit58b37be5acf86913900b51d92eaa3cbb38b14f91 (patch)
tree4e990c5518e9cc87397f4f6e12e9595a3b07aa97
parentd8d7cf27c38a153337dbc12f2848573e06159690 (diff)
downloadjquery-ui-58b37be5acf86913900b51d92eaa3cbb38b14f91.tar.gz
jquery-ui-58b37be5acf86913900b51d92eaa3cbb38b14f91.zip
Widget factory: Make methods chainable if the return value is undefined. Fixed #4601 (Allow undefined return value for chainable method calls).
-rw-r--r--ui/ui.core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index fe2d228e3..eb0420c62 100644
--- a/ui/ui.core.js
+++ b/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;
}