Store tool and modVersion enabled states

This commit is contained in:
Andrew Miner
2015-01-12 14:18:07 -08:00
parent 3e70c0deef
commit fef9d155d8
4 changed files with 29 additions and 9 deletions
+3 -2
View File
@@ -8,6 +8,7 @@ All rights reserved.
BaseModel = require './base_model'
CraftingPlan = require './crafting_plan'
CraftingTable = require './crafting_table'
{Event} = require '../constants'
ModPack = require './mod_pack'
########################################################################################################################
@@ -21,8 +22,8 @@ module.exports = class ItemPage extends BaseModel
attributes.table ?= new CraftingTable plan:attributes.plan
super attributes, options
@modPack.on 'change', => @_consumeParams()
@plan.on 'change', => @_updateLocation()
@modPack.on Event.change, => @_consumeParams()
@plan.on Event.change, => @_updateLocation()
# Private Methods ##############################################################################