add pets count on character popover. also, static bindings wherever
possible - saves CPU
This commit is contained in:
@@ -151,4 +151,6 @@ viewHelpers = (view) ->
|
||||
|
||||
view.fn 'ownsPet', (pet, userPets) -> userPets?.indexOf(pet) != -1
|
||||
|
||||
view.fn 'count', (arr) -> (arr?.length - 1) or 0
|
||||
|
||||
module.exports = { viewHelpers, removeWhitespace, randomVal, daysBetween, dayMapping, username }
|
||||
|
||||
Reference in New Issue
Block a user