changeset 5 | 0f2326c2a325 |
parent 1 | b0dd75e285d2 |
child 6 | 1c3b8676e58c |
--- a/ginebra/chrome/js/Bind.js Fri May 14 15:40:36 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ - -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; -}