some typo fixes

This commit is contained in:
Tyler Renelle 2013-02-06 14:12:05 -05:00
parent 7764447355
commit 9854bc1a3c
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
content = require('./content')
_ = require 'underscore'
module.exports.resetDom = (model) ->
window.DERBY.app.dom.clear()
@ -60,7 +60,7 @@ module.exports.setupSortable = (model) ->
# Also, note that refList index arguments can either be an index
# or the item's id property
model.at("_#{type}List").pass(ignore: domId).move {id}, to
setupSortable(type) for type in ['habit', 'daily', 'todo', 'reward']
_.each ['habit', 'daily', 'todo', 'reward'], (type) -> setupSortable(type)
module.exports.setupTooltips = (model) ->
$('[rel=tooltip]').tooltip()

View file

@ -273,7 +273,7 @@ ready (model) ->
batch.set 'tasks', {}
_.each taskTypes, (type) -> batch.set "idLists.#{type}", []
batch.set 'balance', 2 if user.get('balance') < 2 #only if they haven't manually bought tokens
revive(batch, true)
revive(batch)
batch.commit()
browser.resetDom(model)

View file

@ -245,7 +245,7 @@ cron = () ->
batch.setStats()
batch.set('history', obj.history)
batch.commit()
require('./browser').reset(model)
browser.resetDom(model)
setTimeout (-> user.set 'stats.hp', hpAfter), 1000 # animate hp loss