summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src/js/editor.js')
-rw-r--r--addons/web_editor/static/src/js/editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/editor.js b/addons/web_editor/static/src/js/editor.js
index 9dd08c3abd5..1163635146f 100644
--- a/addons/web_editor/static/src/js/editor.js
+++ b/addons/web_editor/static/src/js/editor.js
@@ -130,7 +130,7 @@ editor.Class = Widget.extend({
return this.rte.save();
},
cancel: function () {
- new $.Deferred(function (d) {
+ return new $.Deferred(function (d) {
if (!rte.history.getEditableHasUndo().length) {
return d.resolve();
}