[FIX] object may or may not have been started when destroy is run

bzr revid: xmo@openerp.com-20120726144420-7coh354993kj546a
This commit is contained in:
Xavier Morel 2012-07-26 16:44:20 +02:00
parent 3e4262266f
commit 9cde11f63d
1 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,9 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
w.off('focused blurred');
w.destroy();
});
this.$element.off('.formBlur');
if (this.$element) {
this.$element.off('.formBlur');
}
this._super();
},
on_loaded: function(data) {