Fixed missing colon in bg.coffee.

This commit is contained in:
Nick Winter 2014-11-18 06:50:13 -08:00
parent 96e57a7520
commit 6ef9532b1d
2 changed files with 12 additions and 8 deletions
app

View file

@ -149,7 +149,7 @@ module.exports = nativeDescription: "български език", englishDescri
# body: "Body"
version: "Версия"
# commit_msg: "Commit Message"
version_history "Предишни версии" # "Version History"
version_history: "Предишни версии" # "Version History"
# version_history_for: "Version History for: "
# result: "Result"
results: "Резултати"

View file

@ -68,13 +68,17 @@ module.exports = class Level extends CocoModel
placeholders = {}
placeholdersUsed = {}
placeholderThangType = supermodel.getModelByOriginal(ThangType, levelThang.thangType)
for defaultPlaceholderComponent in placeholderThangType.get('components')
placeholders[defaultPlaceholderComponent.original] = defaultPlaceholderComponent
for thangComponent in levelThang.components
placeholders[thangComponent.original] = thangComponent
levelThang.components = [] # We have stored the placeholder values, so we can inherit everything else.
heroThangType = session?.get('heroConfig')?.thangType
levelThang.thangType = heroThangType if heroThangType
unless placeholderThangType
console.error "Couldn't find placeholder ThangType for the hero!"
isHero = false
else
for defaultPlaceholderComponent in placeholderThangType.get('components')
placeholders[defaultPlaceholderComponent.original] = defaultPlaceholderComponent
for thangComponent in levelThang.components
placeholders[thangComponent.original] = thangComponent
levelThang.components = [] # We have stored the placeholder values, so we can inherit everything else.
heroThangType = session?.get('heroConfig')?.thangType
levelThang.thangType = heroThangType if heroThangType
thangType = supermodel.getModelByOriginal(ThangType, levelThang.thangType, (m) -> m.get('components')?)