/* Copyright (c) 2004-2010, 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["dojox.collections.ArrayList"]){dojo._hasResource["dojox.collections.ArrayList"]=true;dojo.provide("dojox.collections.ArrayList");dojo.require("dojox.collections._base");dojox.collections.ArrayList=function(_1){var _2=[];if(_1){_2=_2.concat(_1);}this.count=_2.length;this.add=function(_3){_2.push(_3);this.count=_2.length;};this.addRange=function(a){if(a.getIterator){var e=a.getIterator();while(!e.atEnd()){this.add(e.get());}this.count=_2.length;}else{for(var i=0;i=0){_2.splice(i,1);}this.count=_2.length;};this.removeAt=function(i){_2.splice(i,1);this.count=_2.length;};this.reverse=function(){_2.reverse();};this.sort=function(fn){if(fn){_2.sort(fn);}else{_2.sort();}};this.setByIndex=function(i,_9){_2[i]=_9;this.count=_2.length;};this.toArray=function(){return [].concat(_2);};this.toString=function(_a){return _2.join((_a||","));};};}