Fix leave modal when leaving new post

no ref
- set titleScratch to empty string if unset
This commit is contained in:
Fabian Becker 2014-09-23 20:04:26 +00:00
parent a41c17936c
commit 918783a8ce

View File

@ -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());