mirror of https://github.com/OCA/web.git
[IMP] use this.proxy instead of _.bind in the click event
parent
b645038211
commit
cc7dc5c924
|
@ -24,7 +24,7 @@ openerp.web_widget_radio_tree = function (instance) {
|
|||
this.$checkbox.attr('name', radio_name);
|
||||
|
||||
var self = this;
|
||||
this.$el.click(_.bind(function() {
|
||||
this.$el.click(this.proxy(function() {
|
||||
self.clean_radio_in_records();
|
||||
this.internal_set_value(true);
|
||||
}, this));
|
||||
|
|
Loading…
Reference in New Issue