summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/openerpframework.js
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2013-08-06 15:07:34 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2013-08-06 15:07:34 +0200
commite6e5fcde1ef2e530952b91899c3fbf70a603eff6 (patch)
tree73fb9329bb7b057dd0abef53be8821b96adf6ee4 /addons/web/static/src/js/openerpframework.js
parentbaef37aec64b21fbdb036345a740c35a5355bc8c (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.js2
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);
}
}
}