define("dojox/collections/Stack", ["dojo/_base/kernel", "dojo/_base/array", "./_base"], function(dojo, darray, dxc){ dxc.Stack=function(/*array?*/ arr){ // summary: // returns an object of type dojox.collections.Stack var q=[]; if (arr) q=q.concat(arr); this.count=q.length; this.clear=function(){ // summary: // Clear the internal array and reset the count q=[]; this.count=q.length; }; this.clone=function(){ // summary: // Create and return a clone of this Stack return new dxc.Stack(q); }; this.contains=function(/*object*/ o){ // summary: // check to see if the stack contains object o for (var i=0; i