rem: repeat: function (elem, /* optional */n) { /***  repeat(elem, [,n]) --> elem, elem, elem, ... endlessly or up to n times  ***/ var m = MochiKit.Base; if (typeof(n) == 'undefined') { return { repr: function () { return "repeat(" + m.repr(elem) + ")"; }, toString: m.forward("repr"), next: function () { return elem; } }; } return { repr: function () { return "repeat(" + m.repr(elem) + ", " + n + ")"; }, toString: m.forward("repr"), next: function () { if (n <= 0) { throw MochiKit.Iter.StopIteration; } n -= 1; return elem; } }; }, 
add: },repeat:function(elem,n){ var m=MochiKit.Base; if(typeof (n)=="undefined"){ return {repr:function(){ return "repeat("+m.repr(elem)+")"; },toString:m.forward("repr"),next:function(){ return elem; }}; } return {repr:function(){ return "repeat("+m.repr(elem)+", "+n+")"; },toString:m.forward("repr"),next:function(){ if(n<=0){ throw MochiKit.Iter.StopIteration; } n-=1; return elem; }}; },next:function(_136){ 
context:     repeat: function (elem, /* optional */n) {        /***            repeat(elem, [,n]) --> elem, elem, elem, ... endlessly or up to n                times        ***/        var m = MochiKit.Base;        if (typeof(n) == 'undefined') {            return {                repr: function () {                    return "repeat(" + m.repr(elem) + ")";                },                toString: m.forward("repr"),                next: function () {                    return elem;                }            };        }        return {            repr: function () {                return "repeat(" + m.repr(elem) + ", " + n + ")";            },            toString: m.forward("repr"),            next: function () {                if (n <= 0) {                    throw MochiKit.Iter.StopIteration;                }                n -= 1;                return elem;            }        };    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js