define("dijit/form/MultiSelect", [ "dojo/_base/array", // array.indexOf, array.map "dojo/_base/declare", // declare "dojo/dom-geometry", // domGeometry.setMarginBox "dojo/query", // query "./_FormValueWidget" ], function(array, declare, domGeometry, query, _FormValueWidget){ /*===== var _FormValueWidget = dijit.form._FormValueWidget; =====*/ // module: // dijit/form/MultiSelect // summary: // Widget version of a element, // for selecting multiple options. // size: Number // Number of elements to display on a page // NOTE: may be removed in version 2.0, since elements may have variable height; // set the size via style="..." or CSS class names instead. size: 7, templateString: "", 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