diff options
author | Scott González <scott.gonzalez@gmail.com> | 2014-01-22 10:40:19 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2014-01-22 10:40:19 -0500 |
commit | 113e9d0c2cc3f474da719721857c074c983c7157 (patch) | |
tree | 0dbae897accf436d7306d00188c23321a2375d0b /ui/jquery.ui.autocomplete.js | |
parent | 2ef1b16e4d3aa8766084e50f4a1d806c434e7e43 (diff) | |
download | jquery-ui-113e9d0c2cc3f474da719721857c074c983c7157.tar.gz jquery-ui-113e9d0c2cc3f474da719721857c074c983c7157.zip |
Autocomplete: Normalize falsy values, not just missing values
Fixes #9762
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index ca2458ea6..e40e703b9 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -478,10 +478,10 @@ $.widget( "ui.autocomplete", { value: item }; } - return $.extend({ + return $.extend( {}, item, { label: item.label || item.value, value: item.value || item.label - }, item ); + }); }); }, |