Created
January 10, 2011 17:50
-
-
Save gmoeck/773134 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
countSummary: function() { | |
var length = this.get('length'); | |
if(length == 0) return 'No Tasks'; | |
return length == 1 ? '1 Task' : "%@ Tasks".fmt(length); | |
}.property('length').cacheable(), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment