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){ // module: // dijit/form/MultiSelect return declare("dijit.form.MultiSelect", _FormValueWidget, { // summary: // Widget version of a `", 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){ if(this.restoreOriginalText){ n.text = this.enforceTextDirWithUcc(this.restoreOriginalText(n), n.text); } this.containerNode.appendChild(n); // scroll to bottom to see item // cannot use scrollIntoView since