mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Fixed processing of default Programmable config.
This commit is contained in:
parent
c2d74a812d
commit
163cf50528
1 changed files with 1 additions and 0 deletions
|
@ -112,6 +112,7 @@ module.exports = class TomeView extends CocoView
|
|||
for thang in programmableThangs
|
||||
continue if @thangSpells[thang.id]?
|
||||
@thangSpells[thang.id] = []
|
||||
thang.programmableMethods ?= plan: {name: 'plan', source: '// Should fill in some default source.', permissions: {readwrite: ['humans']}}
|
||||
for methodName, method of thang.programmableMethods
|
||||
pathComponents = [thang.id, methodName]
|
||||
if method.cloneOf
|
||||
|
|
Loading…
Reference in a new issue