diff options
| author | ima-openerp <ima@tinyerp.com> | 2013-10-21 18:12:22 +0530 |
|---|---|---|
| committer | ima-openerp <ima@tinyerp.com> | 2013-10-21 18:12:22 +0530 |
| commit | 7678ea996fbf0fcd146bd7ffbf75ab450db7dd4e (patch) | |
| tree | a854e1029302edfe582f594bc2f684aaeec9e45d /addons/web/static/src/js/core.js | |
| parent | 8acd61c43e7d47f3c83d19aa3c3f1d4fd4547c10 (diff) | |
| parent | ebeeae0ed4c57e36db143c11de11174ca1330892 (diff) | |
[MERGE]with trunk.
bzr revid: ima@tinyerp.com-20131021124222-7j3xc1ahtek5gyuw
Diffstat (limited to 'addons/web/static/src/js/core.js')
| -rw-r--r-- | addons/web/static/src/js/core.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/addons/web/static/src/js/core.js b/addons/web/static/src/js/core.js index 8c69f86c47e..37a217a8664 100644 --- a/addons/web/static/src/js/core.js +++ b/addons/web/static/src/js/core.js @@ -11,31 +11,6 @@ if (typeof(console) === "undefined") { }); } -// shim provided by mozilla for function.bind -if (!Function.prototype.bind) { - Function.prototype.bind = function (oThis) { - if (typeof this !== "function") { - // closest thing possible to the ECMAScript 5 internal IsCallable function - throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); - } - - var aArgs = Array.prototype.slice.call(arguments, 1), - fToBind = this, - fNOP = function () {}, - fBound = function () { - return fToBind.apply(this instanceof fNOP && oThis - ? this - : oThis, - aArgs.concat(Array.prototype.slice.call(arguments))); - }; - - fNOP.prototype = this.prototype; - fBound.prototype = new fNOP(); - - return fBound; - }; -} - var instance = openerp; openerp.web.core = {}; |
