Skip to content

Commit

Permalink
Merge pull request #15 from asvny/patch-1
Browse files Browse the repository at this point in the history
Use computed "empty" macro
  • Loading branch information
balinterdi committed Feb 2, 2017
2 parents fd35f75 + b27f957 commit 4f8cbd2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/bands.js
Expand Up @@ -2,8 +2,6 @@ import Ember from 'ember';

export default Ember.Controller.extend({
newName: '',
disabled: Ember.computed('newName', function() {
return Ember.isEmpty(this.get('newName'));
})
disabled: Ember.computed.empty('newName')
});

0 comments on commit 4f8cbd2

Please sign in to comment.