[IMP] use this.proxy instead of _.bind in the click event

pull/351/head
Cesar Lage 2016-06-06 10:52:56 -04:00
parent b645038211
commit cc7dc5c924
1 changed files with 1 additions and 1 deletions

View File

@ -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));