mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] use this.proxy instead of _.bind in the click event
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user