/*
Copyright (c) 2004-2011, 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._base"]){
dojo._hasResource["dojox.collections._base"]=true;
dojo.provide("dojox.collections._base");
dojox.collections.DictionaryEntry=function(k,v){
this.key=k;
this.value=v;
this.valueOf=function(){
return this.value;
};
this.toString=function(){
return String(this.value);
};
};
dojox.collections.Iterator=function(_1){
var a=_1;
var _2=0;
this.element=a[_2]||null;
this.atEnd=function(){
return (_2>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_2++];
return this.element;
};
this.map=function(fn,_3){
return dojo.map(a,fn,_3);
};
this.reset=function(){
_2=0;
this.element=a[_2];
};
};
dojox.collections.DictionaryIterator=function(_4){
var a=[];
var _5={};
for(var p in _4){
if(!_5[p]){
a.push(_4[p]);
}
}
var _6=0;
this.element=a[_6]||null;
this.atEnd=function(){
return (_6>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_6++];
return this.element;
};
this.map=function(fn,_7){
return dojo.map(a,fn,_7);
};
this.reset=function(){
_6=0;
this.element=a[_6];
};
};
}
# |
Change |
User |
Description |
Committed |
|
#1
|
16170 |
perforce_software |
Move Chronicle files to follow new path scheme for branching. |
|
|
//guest/perforce_software/chronicle/application/dojo/resources/dojox/collections/_base.js |
#1
|
8972 |
Matt Attaway |
Initial add of the Chronicle source code |
|
|