diff options
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.editor.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index f0b1b1e2549..4258fda46a1 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -1103,6 +1103,7 @@ var SnippetsMenu = Widget.extend({ _.each(this.snippetEditors, function (snippetEditor) { snippetEditor.destroy(); }); + this.snippetEditors.splice(0); }, /** * Calls a given callback 'on' the given snippet and all its child ones if |
