summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-11-30 14:45:11 -0200
committerGiovane <giovaneliberato@gmail.com>2015-11-30 14:45:11 -0200
commit4ff38dfd2ef496768c570302d3dfd7ff3e1b3e71 (patch)
treeb41ce79e1782a20a65bd406859c828429b6ee4f8 /web-ui
parent935b1b6f1f200a995dc1f82391a26dfe59a87e50 (diff)
Check if the discardMail method is define before apply the default implementation. #512
Diffstat (limited to 'web-ui')
-rw-r--r--web-ui/app/js/mixins/with_mail_edit_base.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web-ui/app/js/mixins/with_mail_edit_base.js b/web-ui/app/js/mixins/with_mail_edit_base.js
index 36d5980f..a1fa6b09 100644
--- a/web-ui/app/js/mixins/with_mail_edit_base.js
+++ b/web-ui/app/js/mixins/with_mail_edit_base.js
@@ -216,7 +216,9 @@ define(
};
this.before('initialize', function () {
+ if (!this.discardDraft){
this.discardDraft = function () {};
+ }
});
this.after('initialize', function () {