changeset 0 | 1450b09d0cfd |
child 3 | 0954f5dd2cd0 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ginebra2/chrome/js/Bind.js Tue May 04 12:39:35 2010 +0300 @@ -0,0 +1,18 @@ + +Function.prototype.bind = function(obj) { + var method = this, + temp = function() { + return method.apply(obj, arguments); + }; + + return temp; +} + +function createDelegate(object, method) { + var shim = function() + { + method.apply(object, arguments); + } + + return shim; +}