diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-09-17 18:03:41 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-09-17 18:03:41 +0200 |
| commit | 0942a57b5adcfae1e5c37f9b7f904e83b131439c (patch) | |
| tree | 6344b5e103f88724ba0f855e20ba2da80b0e061f /addons/web/static/src/js/fields | |
| parent | a6516c35334de382e2325171def181586e6cdfac (diff) | |
| parent | f2b8caff07ba41b851ae9d5015e317753f3eb1a1 (diff) | |
[MERGE] forward port branch 11.0 up to f2b8caff07b
Diffstat (limited to 'addons/web/static/src/js/fields')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index bb2130aa6b8..0796cbc706a 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -2131,7 +2131,7 @@ var JournalDashboardGraph = AbstractField.extend({ return this._super.apply(this, arguments); }, destroy: function () { - if ('nv' in window) { + if ('nv' in window && nv.utils && nv.utils.offWindowResize) { // if the widget is destroyed before the lazy loaded libs (nv) are // actually loaded (i.e. after the widget has actually started), // nv is undefined, but the handler isn't bound yet anyway |
