diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-08-06 15:07:34 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-08-06 15:07:34 +0200 |
| commit | e6e5fcde1ef2e530952b91899c3fbf70a603eff6 (patch) | |
| tree | 73fb9329bb7b057dd0abef53be8821b96adf6ee4 /addons/web/static/src/js/openerpframework.js | |
| parent | baef37aec64b21fbdb036345a740c35a5355bc8c (diff) | |
[IMP] Improved shim for function.bind
bzr revid: nicolas.vanhoren@openerp.com-20130806130734-lov3aq0m4b1r4sto
Diffstat (limited to 'addons/web/static/src/js/openerpframework.js')
| -rw-r--r-- | addons/web/static/src/js/openerpframework.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/openerpframework.js b/addons/web/static/src/js/openerpframework.js index b5b245065f5..531893e1b1e 100644 --- a/addons/web/static/src/js/openerpframework.js +++ b/addons/web/static/src/js/openerpframework.js @@ -547,7 +547,7 @@ openerp.Widget = openerp.Class.extend(openerp.PropertiesMixin, { for (var name in this) { if(typeof(this[name]) == "function") { if((/^on_|^do_/).test(name)) { - this[name] = this[name].bind(this); + this[name] = _.bind(this[name], this); } } } |
