var c=new dojox.collections.BinaryTree(); var itr=this.getIterator(); while(!itr.atEnd()){ c.add(itr.get()); } return c;