Browse Source

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

pull/351/head
Cesar Lage 9 years ago
parent
commit
cc7dc5c924
  1. 2
      web_widget_radio_tree/static/src/js/widget.js

2
web_widget_radio_tree/static/src/js/widget.js

@ -24,7 +24,7 @@ openerp.web_widget_radio_tree = function (instance) {
this.$checkbox.attr('name', radio_name); this.$checkbox.attr('name', radio_name);
var self = this; var self = this;
this.$el.click(_.bind(function() {
this.$el.click(this.proxy(function() {
self.clean_radio_in_records(); self.clean_radio_in_records();
this.internal_set_value(true); this.internal_set_value(true);
}, this)); }, this));

Loading…
Cancel
Save