if(!dojo._hasResource["dojox.collections.Queue"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojox.collections.Queue"] = true; dojo.provide("dojox.collections.Queue"); dojo.require("dojox.collections._base"); dojox.collections.Queue=function(/* array? */arr){ // summary // return an object of type dojox.collections.Queue var q=[]; if (arr){ q=q.concat(arr); } this.count=q.length; this.clear=function(){ // summary // clears the internal collection q=[]; this.count=q.length; }; this.clone=function(){ // summary // creates a new Queue based on this one return new dojox.collections.Queue(q); // dojox.collections.Queue }; this.contains=function(/* object */ o){ // summary // Check to see if the passed object is an element in this queue for(var i=0; i