summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-07-26 16:44:20 +0200
committerXavier Morel <xmo@openerp.com>2012-07-26 16:44:20 +0200
commit9cde11f63d3fb3ac7a2c0d782c159302be2f95ed (patch)
tree5d5fa2d864724ef90cb3e2424b0c3c8e5d950246 /addons/web/static/src
parent3e4262266f99af4c927f60984108110a2f7e7f06 (diff)
[FIX] object may or may not have been started when destroy is run
bzr revid: xmo@openerp.com-20120726144420-7coh354993kj546a
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/view_form.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index d38494112e5..ca0f2b77082 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -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) {