[FIX] move setElement init call from WidgetMixin to Widget
Widget is the one providing both setElement and _make_descriptive... bzr revid: xmo@openerp.com-20120726145704-uzg7ufntvf24gnyd
This commit is contained in:
parent
5c0324f321
commit
5fe4ff9c49
|
@ -514,7 +514,6 @@ instance.web.WidgetMixin = _.extend({},instance.web.CallbackEnabledMixin, {
|
|||
*/
|
||||
init: function(parent) {
|
||||
instance.web.CallbackEnabledMixin.init.call(this);
|
||||
this.setElement(this._make_descriptive());
|
||||
this.setParent(parent);
|
||||
},
|
||||
/**
|
||||
|
@ -689,6 +688,8 @@ instance.web.Widget = instance.web.Class.extend(instance.web.WidgetMixin, {
|
|||
*/
|
||||
init: function(parent) {
|
||||
instance.web.WidgetMixin.init.call(this,parent);
|
||||
// FIXME: this should not be
|
||||
this.setElement(this._make_descriptive());
|
||||
this.session = instance.connection;
|
||||
},
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue