changeset 3 | 0954f5dd2cd0 |
parent 1 | b0dd75e285d2 |
child 4 | d5cdb6bc139d |
--- 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; -}