2
我计算性质都非常相似的集合:干燥起来ember.js计算性能
WZ.ExercisesHomeController = Em.ArrayController.extend
content: Ember.A()
arms: (->
@filterProperty('group.name', 'Arms')
).property('@each.isArms')
abs: (->
@filterProperty('group.name', 'Abs')
).property('@each.isAbs')
back: (->
@filterProperty('group.name', 'Back')
).property('@each.isBack')
chest: (->
@filterProperty('group.name', 'Chest')
).property('@each.isChest')
legs: (->
@filterProperty('group.name', 'Legs')
).property('@each.isLegs')
有没有什么办法可以改变这一个属性,可能是一组欢迎使用属性?