build browser scripts

This commit is contained in:
Tyler Renelle 2013-08-25 09:07:58 -04:00
parent 962f8d6442
commit bff1b50e42
3 changed files with 2836 additions and 2820 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -122,6 +122,10 @@ module.exports =
newUser
percent: (x,y) ->
x=1 if x==0
Math.round(x/y*100)
###
This allows you to set object properties by dot-path. Eg, you can run pathSet('stats.hp',50,user) which is the same as
user.stats.hp = 50. This is useful because in our habitrpg-shared functions we're returning changesets as {path:value},