rem: bind: function (func, self/* args... */) { if (typeof(func) == "string") { func = self[func]; } var im_func = func.im_func; var im_preargs = func.im_preargs; var im_self = func.im_self; var m = MochiKit.Base; if (typeof(func) == "function" && typeof(func.apply) == "undefined") {    func = m._wrapDumbFunction(func); } if (typeof(im_func) != 'function') { im_func = func; } if (typeof(self) != 'undefined') { im_self = self; } if (typeof(im_preargs) == 'undefined') { im_preargs = []; } else  { im_preargs = im_preargs.slice(); } m.extend(im_preargs, arguments, 2); var newfunc = function () { var args = arguments; var me = arguments.callee; if (me.im_preargs.length > 0) { args = m.concat(me.im_preargs, args); } var self = me.im_self; if (!self) { self = this; } return me.im_func.apply(self, args); }; newfunc.im_self = im_self; newfunc.im_func = im_func; newfunc.im_preargs = im_preargs; return newfunc; }, 
add: },bind:function(_45,_46){ if(typeof (_45)=="string"){ _45=_46[_45]; } var _47=_45.im_func; var _48=_45.im_preargs; var _49=_45.im_self; var m=MochiKit.Base; if(typeof (_45)=="function"&&typeof (_45.apply)=="undefined"){ _45=m._wrapDumbFunction(_45); } if(typeof (_47)!="function"){ _47=_45; } if(typeof (_46)!="undefined"){ _49=_46; } if(typeof (_48)=="undefined"){ _48=[]; }else{ _48=_48.slice(); } m.extend(_48,arguments,2); var _50=function(){ var _51=arguments; var me=arguments.callee; if(me.im_preargs.length>0){ _51=m.concat(me.im_preargs,_51); } var _46=me.im_self; if(!_46){ _46=this; } return me.im_func.apply(_46,_51); }; _50.im_self=_49; _50.im_func=_47; _50.im_preargs=_48; return _50; },bindMethods:function(_52){ 
context:     bind: function (func, self/* args... */) {        if (typeof(func) == "string") {            func = self[func];        }        var im_func = func.im_func;        var im_preargs = func.im_preargs;        var im_self = func.im_self;        var m = MochiKit.Base;        if (typeof(func) == "function" && typeof(func.apply) == "undefined") {            // this is for cases where JavaScript sucks ass and gives you a            // really dumb built-in function like alert() that doesn't have            // an apply            func = m._wrapDumbFunction(func);        }        if (typeof(im_func) != 'function') {            im_func = func;        }        if (typeof(self) != 'undefined') {            im_self = self;        }        if (typeof(im_preargs) == 'undefined') {            im_preargs = [];        } else  {            im_preargs = im_preargs.slice();        }        m.extend(im_preargs, arguments, 2);        var newfunc = function () {            var args = arguments;            var me = arguments.callee;            if (me.im_preargs.length > 0) {                args = m.concat(me.im_preargs, args);            }            var self = me.im_self;            if (!self) {                self = this;            }            return me.im_func.apply(self, args);        };        newfunc.im_self = im_self;        newfunc.im_func = im_func;        newfunc.im_preargs = im_preargs;        return newfunc;    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js