rem: extend: function (self, obj, /* optional */skip) { /***  Mutate an array by extending it with an array-like obj, starting with the "skip" index of obj.  If null is given as the initial array, a new one will be created.  This mutates *and returns* the given array, be warned.  ***/    if (!skip) { skip = 0; } if (obj) {   var l = obj.length; if (typeof(l) != 'number' /* !isArrayLike(obj) */) { if (typeof(MochiKit.Iter) != "undefined") { obj = MochiKit.Iter.list(obj); l = obj.length; } else { throw new TypeError("Argument not an array-like and MochiKit.Iter not present"); } } if (!self) { self = []; } for (var i = skip; i < l; i++) { self.push(obj[i]); } }    return self; }, 
add: },extend:function(_9,obj,_11){ if(!_11){ _11=0; } if(obj){ var l=obj.length; if(typeof (l)!="number"){ if(typeof (MochiKit.Iter)!="undefined"){ obj=MochiKit.Iter.list(obj); l=obj.length; }else{ throw new TypeError("Argument not an array-like and MochiKit.Iter not present"); } } if(!_9){ _9=[]; } for(var i=_11;i<l;i++){ _9.push(obj[i]); } } return _9; },updatetree:function(_13,obj){ 
context:     extend: function (self, obj, /* optional */skip) {        /***            Mutate an array by extending it with an array-like obj,            starting with the "skip" index of obj.  If null is given            as the initial array, a new one will be created.            This mutates *and returns* the given array, be warned.        ***/        // Extend an array with an array-like object starting        // from the skip index        if (!skip) {            skip = 0;        }        if (obj) {            // allow iterable fall-through, but skip the full isArrayLike            // check for speed, this is called often.            var l = obj.length;            if (typeof(l) != 'number' /* !isArrayLike(obj) */) {                if (typeof(MochiKit.Iter) != "undefined") {                    obj = MochiKit.Iter.list(obj);                    l = obj.length;                } else {                    throw new TypeError("Argument not an array-like and MochiKit.Iter not present");                }            }            if (!self) {                self = [];            }            for (var i = skip; i < l; i++) {                self.push(obj[i]);            }        }        // This mutates, but it's convenient to return because        // it's often used like a constructor when turning some        // ghetto array-like to a real array        return self;    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js