mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Various fixes.
This commit is contained in:
parent
63b5b50f96
commit
966155593c
3 changed files with 4 additions and 3 deletions
|
@ -41,7 +41,7 @@ class CocoModel extends Backbone.Model
|
|||
|
||||
set: ->
|
||||
res = super(arguments...)
|
||||
@saveBackup() if @saveBackups and @loaded
|
||||
@saveBackup() if @saveBackups and @loaded and @hasLocalChanges()
|
||||
res
|
||||
|
||||
saveBackup: ->
|
||||
|
|
|
@ -12,8 +12,8 @@ LevelComponentHandler = class LevelComponentHandler extends Handler
|
|||
'dependencies'
|
||||
'propertyDocumentation'
|
||||
'configSchema'
|
||||
'name'
|
||||
]
|
||||
postEditableProperties: ['name']
|
||||
|
||||
getEditableProperties: (req, document) ->
|
||||
props = super(req, document)
|
||||
|
|
|
@ -9,7 +9,8 @@ class AttacksSelf extends Component
|
|||
"""
|
||||
systems = [
|
||||
'action', 'ai', 'alliance', 'collision', 'combat', 'display', 'event', 'existence', 'hearing'
|
||||
'inventory', 'movement', 'programming', 'targeting', 'ui', 'vision', 'misc', 'physics', 'effect'
|
||||
'inventory', 'movement', 'programming', 'targeting', 'ui', 'vision', 'misc', 'physics', 'effect',
|
||||
'magic'
|
||||
]
|
||||
|
||||
PropertyDocumentationSchema = c.object {
|
||||
|
|
Loading…
Reference in a new issue