rem: cycle: function (p) { /***  cycle(p) --> p0, p1, ... plast, p0, p1, ...  ***/ var self = MochiKit.Iter; var m = MochiKit.Base; var lst = []; var iterator = self.iter(p); return { repr: function () { return "cycle(...)"; }, toString: m.forward("repr"), next: function () { try { var rval = iterator.next(); lst.push(rval); return rval; } catch (e) { if (e != self.StopIteration) { throw e; } if (lst.length == 0) { this.next = function () { throw self.StopIteration; }; } else { var i = -1; this.next = function () { i = (i + 1) % lst.length; return lst[i]; } } return this.next(); } } } }, 
add: },cycle:function(p){ var self=MochiKit.Iter; var m=MochiKit.Base; var lst=[]; var _134=self.iter(p); return {repr:function(){ return "cycle(...)"; },toString:m.forward("repr"),next:function(){ try{ var rval=_134.next(); lst.push(rval); return rval; } catch(e){ if(e!=self.StopIteration){ throw e; } if(lst.length==0){ this.next=function(){ throw self.StopIteration; }; }else{ var i=-1; this.next=function(){ i=(i+1)%lst.length; return lst[i]; }; } return this.next(); } }}; },repeat:function(elem,n){ 
context:     cycle: function (p) {        /***            cycle(p) --> p0, p1, ... plast, p0, p1, ...        ***/        var self = MochiKit.Iter;        var m = MochiKit.Base;        var lst = [];        var iterator = self.iter(p);        return {            repr: function () { return "cycle(...)"; },            toString: m.forward("repr"),            next: function () {                try {                    var rval = iterator.next();                    lst.push(rval);                    return rval;                } catch (e) {                    if (e != self.StopIteration) {                        throw e;                    }                    if (lst.length == 0) {                        this.next = function () {                            throw self.StopIteration;                        };                    } else {                        var i = -1;                        this.next = function () {                            i = (i + 1) % lst.length;                            return lst[i];                        }                    }                    return this.next();                }            }        }    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js