Skip to content

Commit

Permalink
Fix regression in re-setting slug on untitled post
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswilli committed Feb 1, 2015
1 parent 950f9c2 commit 15fcc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/client/controllers/post-settings-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ var PostSettingsMenuController = Ember.Controller.extend(SettingsMenuMixin, {
// generate a slug if a post is new and doesn't have a title yet or
// if the title is still '(Untitled)' and the slug is unaltered.
if ((this.get('model.isNew') && !title) || title === '(Untitled)') {
debounceId = Ember.run.debounce(this, 'generateAndSetSlug', ['slug'], 700);
debounceId = Ember.run.debounce(this, 'generateAndSetSlug', 'model.slug', 700);
}

this.set('debounceId', debounceId);
Expand Down

0 comments on commit 15fcc80

Please sign in to comment.