From d52aca45e0357b5597e13d9b74998abb75fabea5 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 16 Feb 2012 10:54:48 -0800 Subject: integrating the latest montage fixes for v0.6 into master Signed-off-by: Valerio Virgillito --- .../montage/ui/select-input.reel/select-input.js | 53 ++++++++++------------ 1 file changed, 24 insertions(+), 29 deletions(-) (limited to 'node_modules/montage/ui/select-input.reel/select-input.js') diff --git a/node_modules/montage/ui/select-input.reel/select-input.js b/node_modules/montage/ui/select-input.reel/select-input.js index 76de1a5a..09a064d4 100644 --- a/node_modules/montage/ui/select-input.reel/select-input.js +++ b/node_modules/montage/ui/select-input.reel/select-input.js @@ -7,14 +7,8 @@ var Montage = require("montage").Montage, Component = require("ui/component").Component, ArrayController = require("ui/controller/array-controller").ArrayController, - NativeControl = require("ui/native-control").NativeControl; - -var STRING_CLASS = '[object String]'; -var _toString = Object.prototype.toString; - -var isString = function(object) { - return _toString.call(object) === STRING_CLASS; -}; + NativeControl = require("ui/native-control").NativeControl, + PressComposer = require("ui/composer/press-composer").PressComposer; var SelectInput = exports.SelectInput = Montage.create(NativeControl, { @@ -154,9 +148,6 @@ var SelectInput = exports.SelectInput = Montage.create(NativeControl, { deserializedFromTemplate: { value: function() { - // @todo - Need a better way to do this. - var fn = Object.getPrototypeOf(SelectInput).deserializedFromTemplate; - fn.call(this); /* 1) If