diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-06-15 02:01:11 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-06-15 02:01:11 +0000 |
commit | 58b37be5acf86913900b51d92eaa3cbb38b14f91 (patch) | |
tree | 4e990c5518e9cc87397f4f6e12e9595a3b07aa97 | |
parent | d8d7cf27c38a153337dbc12f2848573e06159690 (diff) | |
download | jquery-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.js | 2 |
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; } |