Add local storage for certain UI state

This commit is contained in:
Andrew Miner
2015-01-16 09:01:06 -08:00
parent 33b9214386
commit 03b46f3958
4 changed files with 66 additions and 0 deletions
+4
View File
@@ -115,7 +115,11 @@ module.exports = class ModPack extends BaseModel
loadModVersionData: (data)->
modVersion = @_parser.parse data
@modVersions.push modVersion
@trigger Event.add, modVersion, this
@modVersions.sort (a, b)-> a.compareTo b
@trigger Event.sort, this
modVersion.on Event.change, => @trigger Event.change, this
return modVersion