From f32171f3fc82771588b7df7f467408d08f36042c Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Tue, 23 Sep 2014 20:04:26 +0000 Subject: [PATCH] Fix leave modal when leaving new post no ref - set titleScratch to empty string if unset --- core/client/routes/editor/new.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/client/routes/editor/new.js b/core/client/routes/editor/new.js index 63f5ebb45a..7f0e765854 100644 --- a/core/client/routes/editor/new.js +++ b/core/client/routes/editor/new.js @@ -15,6 +15,7 @@ var EditorNewRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, base setupController: function (controller, model) { this._super(controller, model); controller.set('scratch', ''); + controller.set('titleScratch', ''); // used to check if anything has changed in the editor controller.set('previousTagNames', Ember.A());