Use Em.computed.match.

This commit is contained in:
Vikhyat Korrapati 2014-06-14 13:29:14 +05:30
parent 41ecba1b77
commit cd766ed587
1 changed files with 1 additions and 3 deletions

View File

@ -9,7 +9,5 @@ export default Ember.Component.extend({
return this.get('count') && this.get('count') > 1;
}.property('count'),
isIcon: function() {
return this.get('badge.icon').match(/^fa-/);
}.property('badge.icon')
isIcon: Em.computed.match('badge.icon', /^fa-/)
});