Use Em.computed.match.
This commit is contained in:
parent
41ecba1b77
commit
cd766ed587
|
@ -9,7 +9,5 @@ export default Ember.Component.extend({
|
||||||
return this.get('count') && this.get('count') > 1;
|
return this.get('count') && this.get('count') > 1;
|
||||||
}.property('count'),
|
}.property('count'),
|
||||||
|
|
||||||
isIcon: function() {
|
isIcon: Em.computed.match('badge.icon', /^fa-/)
|
||||||
return this.get('badge.icon').match(/^fa-/);
|
|
||||||
}.property('badge.icon')
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue