mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
remoeve character.coffee self-reference
This commit is contained in:
parent
83649c6734
commit
0680822c19
1 changed files with 2 additions and 3 deletions
|
|
@ -1,4 +1,3 @@
|
|||
character = require './character'
|
||||
browser = require './browser'
|
||||
items = require './items'
|
||||
algos = require './algos'
|
||||
|
|
@ -28,13 +27,13 @@ module.exports.app = (appExports, model) ->
|
|||
items.updateStore(model)
|
||||
|
||||
appExports.revive = (e, el) ->
|
||||
batch = new character.BatchUpdate(model)
|
||||
batch = new BatchUpdate(model)
|
||||
batch.startTransaction()
|
||||
revive(batch)
|
||||
batch.commit()
|
||||
|
||||
appExports.reset = (e, el) ->
|
||||
batch = new character.BatchUpdate(model)
|
||||
batch = new BatchUpdate(model)
|
||||
batch.startTransaction()
|
||||
taskTypes = ['habit', 'daily', 'todo', 'reward']
|
||||
batch.set 'tasks', {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue