dojo.collections.Iterator=function(/* array */arr){   var a=arr; var position=0; this.element=a[position]||null; this.atEnd=function(){   return (position>=a.length); }; this.get=function(){   if(this.atEnd()){ return null; } this.element=a[position++]; return this.element; }; this.map=function(/* function */fn, /* object? */scope){   var s=scope||dj_global; if(Array.map){ return Array.map(a,fn,s); }else{ var arr=[]; for(var i=0; i<a.length; i++){ arr.push(fn.call(s,a[i])); } return arr; } }; this.reset=function(){   position=0; this.element=a[position]; }; 
dojo.collections.Iterator=function(arr){ var a=arr; var _77b=0; this.element=a[_77b]||null; this.atEnd=function(){ return (_77b>=a.length); }; this.get=function(){ if(this.atEnd()){ return null; 
dojo.collections.Iterator=function(/* array */arr){  //  summary  //  return an object of type dojo.collections.Iterator  var a=arr;  var position=0;  this.element=a[position]||null;  this.atEnd=function(){    //  summary    //  Test to see if the internal cursor has reached the end of the internal collection.    return (position>=a.length);  //  bool  };  this.get=function(){    //  summary    //  Test to see if the internal cursor has reached the end of the internal collection.    if(this.atEnd()){      return null;    //  object    }    this.element=a[position++];    return this.element;  //  object  };  this.map=function(/* function */fn, /* object? */scope){    //  summary    //  Functional iteration with optional scope.    var s=scope||dj_global;    if(Array.map){      return Array.map(a,fn,s); //  array    }else{      var arr=[];      for(var i=0; i<a.length; i++){        arr.push(fn.call(s,a[i]));      }      return arr;   //  array    }  };  this.reset=function(){    //  summary    //  reset the internal cursor.    position=0;    this.element=a[position];  };}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js