/* 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