From 1354d17270961fff662d40f90521223f8fd0d73b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 14 Aug 2012 18:59:10 +0400 Subject: update dojo to 1.7.3 --- lib/dijit/form/MultiSelect.js | 121 +----------------------------------------- 1 file changed, 2 insertions(+), 119 deletions(-) (limited to 'lib/dijit/form/MultiSelect.js') diff --git a/lib/dijit/form/MultiSelect.js b/lib/dijit/form/MultiSelect.js index 12f3b40e7..da76fed00 100644 --- a/lib/dijit/form/MultiSelect.js +++ b/lib/dijit/form/MultiSelect.js @@ -1,119 +1,2 @@ -/* - Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dijit.form.MultiSelect"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dijit.form.MultiSelect"] = true; -dojo.provide("dijit.form.MultiSelect"); -dojo.require("dijit.form._FormWidget"); - - -dojo.declare("dijit.form.MultiSelect", dijit.form._FormValueWidget, { - // summary: - // Widget version of a ", - - attributeMap: dojo.delegate(dijit.form._FormWidget.prototype.attributeMap, { - size: "focusNode" - }), - - reset: function(){ - // summary: - // Reset the widget's value to what it was at initialization time - - // TODO: once we inherit from FormValueWidget this won't be needed - this._hasBeenBlurred = false; - this._setValueAttr(this._resetValue, true); - }, - - addSelected: function(/*dijit.form.MultiSelect*/ select){ - // summary: - // Move the selected nodes of a passed Select widget - // instance to this Select widget. - // - // example: - // | // move all the selected values from "bar" to "foo" - // | dijit.byId("foo").addSelected(dijit.byId("bar")); - - select.getSelected().forEach(function(n){ - this.containerNode.appendChild(n); - // scroll to bottom to see item - // cannot use scrollIntoView since