From f7e4257745ccd44b8d24555f0ef787429d6e472c Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 5 Jun 2012 00:11:03 -0700 Subject: adding the latest v0.10 montage Signed-off-by: Valerio Virgillito --- .../ui/autocomplete/autocomplete.reel/autocomplete.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'node_modules/montage/ui/autocomplete/autocomplete.reel') 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, { _delay: {value: null}, delay: { - distinct: true, get: function(){ return this._delay; }, @@ -81,7 +80,8 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { } this._delay = value; } - } + }, + serializable: true }, /** @@ -89,7 +89,8 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { * Default = 2 */ minLength: { - value: null + value: null, + serializable: true }, _tokens: {value: null}, @@ -104,8 +105,7 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { }, modify: function(v) { this._tokens = v; - }, - distinct: true + } }, // overridden here to get the substring/searchString @@ -241,7 +241,6 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { _suggestedValue: {value: null}, suggestedValue: { - distinct: true, enumerable: false, get: function() { return this._suggestedValue; @@ -443,7 +442,9 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { fn.call(this); if (!this._valueSyncedWithInputField) { - this.value = this.tokens.join(this.separator); + if(this.tokens) { + this.value = this.tokens.join(this.separator); + } if(this.value && this.value.charAt(this.value.length-1) != this.separator) { this.value += this.separator; } -- cgit v1.2.3