//>>built define("dojox/collections/ArrayList",["dojo/_base/kernel","dojo/_base/array","./_base"],function(_1,_2,_3){ _3.ArrayList=function(_4){ var _5=[]; if(_4){ _5=_5.concat(_4); } this.count=_5.length; this.add=function(_6){ _5.push(_6); this.count=_5.length; }; this.addRange=function(a){ if(a.getIterator){ var e=a.getIterator(); while(!e.atEnd()){ this.add(e.get()); } this.count=_5.length; }else{ for(var i=0;i=0){ _5.splice(i,1); } this.count=_5.length; }; this.removeAt=function(i){ _5.splice(i,1); this.count=_5.length; }; this.reverse=function(){ _5.reverse(); }; this.sort=function(fn){ if(fn){ _5.sort(fn); }else{ _5.sort(); } }; this.setByIndex=function(i,_c){ _5[i]=_c; this.count=_5.length; }; this.toArray=function(){ return [].concat(_5); }; this.toString=function(_d){ return _5.join((_d||",")); }; }; return _3.ArrayList; });