diff options
author | Armen Kesablyan | 2012-06-19 01:03:59 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-19 01:03:59 -0700 |
commit | 2e13a73e4ee980a6f73f6ff48b2a195eb209a7db (patch) | |
tree | d352f5e769eae0e1b7b76ccbeafa9b174b1a9918 /node_modules/montage/ui/autocomplete/autocomplete.reel | |
parent | 244e608645778746d1a3b5aa0d4c0868f7c5c272 (diff) | |
parent | c59eb371559a3061ce53223e249ca97daace5968 (diff) | |
download | ninja-2e13a73e4ee980a6f73f6ff48b2a195eb209a7db.tar.gz |
Merge branch 'refs/heads/master' into binding
Conflicts:
js/components/layout/tools-list.reel/tools-list.html
js/components/layout/tools-properties.reel/tools-properties.html
js/document/document-html.js
js/document/templates/app/main.js
js/panels/Panel.reel/Panel.js
node_modules/montage/ui/native-control.js
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/autocomplete/autocomplete.reel')
-rw-r--r-- | node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.js b/node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.js index c9cbca74..4e2dd82e 100644 --- a/node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.js +++ b/node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.js | |||
@@ -70,7 +70,6 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { | |||
70 | 70 | ||
71 | _delay: {value: null}, | 71 | _delay: {value: null}, |
72 | delay: { | 72 | delay: { |
73 | distinct: true, | ||
74 | get: function(){ | 73 | get: function(){ |
75 | return this._delay; | 74 | return this._delay; |
76 | }, | 75 | }, |
@@ -81,7 +80,8 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { | |||
81 | } | 80 | } |
82 | this._delay = value; | 81 | this._delay = value; |
83 | } | 82 | } |
84 | } | 83 | }, |
84 | serializable: true | ||
85 | }, | 85 | }, |
86 | 86 | ||
87 | /** | 87 | /** |
@@ -89,7 +89,8 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { | |||
89 | * Default = 2 | 89 | * Default = 2 |
90 | */ | 90 | */ |
91 | minLength: { | 91 | minLength: { |
92 | value: null | 92 | value: null, |
93 | serializable: true | ||
93 | }, | 94 | }, |
94 | 95 | ||
95 | _tokens: {value: null}, | 96 | _tokens: {value: null}, |
@@ -104,8 +105,7 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { | |||
104 | }, | 105 | }, |
105 | modify: function(v) { | 106 | modify: function(v) { |
106 | this._tokens = v; | 107 | this._tokens = v; |
107 | }, | 108 | } |
108 | distinct: true | ||
109 | }, | 109 | }, |
110 | 110 | ||
111 | // overridden here to get the substring/searchString | 111 | // overridden here to get the substring/searchString |
@@ -241,7 +241,6 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { | |||
241 | 241 | ||
242 | _suggestedValue: {value: null}, | 242 | _suggestedValue: {value: null}, |
243 | suggestedValue: { | 243 | suggestedValue: { |
244 | distinct: true, | ||
245 | enumerable: false, | 244 | enumerable: false, |
246 | get: function() { | 245 | get: function() { |
247 | return this._suggestedValue; | 246 | return this._suggestedValue; |
@@ -443,7 +442,9 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { | |||
443 | fn.call(this); | 442 | fn.call(this); |
444 | 443 | ||
445 | if (!this._valueSyncedWithInputField) { | 444 | if (!this._valueSyncedWithInputField) { |
446 | this.value = this.tokens.join(this.separator); | 445 | if(this.tokens) { |
446 | this.value = this.tokens.join(this.separator); | ||
447 | } | ||
447 | if(this.value && this.value.charAt(this.value.length-1) != this.separator) { | 448 | if(this.value && this.value.charAt(this.value.length-1) != this.separator) { |
448 | this.value += this.separator; | 449 | this.value += this.separator; |
449 | } | 450 | } |