Various fixes.

This commit is contained in:
Scott Erickson 2014-02-05 11:03:32 -08:00
parent 63b5b50f96
commit 966155593c
3 changed files with 4 additions and 3 deletions

View file

@ -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: ->

View file

@ -12,8 +12,8 @@ LevelComponentHandler = class LevelComponentHandler extends Handler
'dependencies'
'propertyDocumentation'
'configSchema'
'name'
]
postEditableProperties: ['name']
getEditableProperties: (req, document) ->
props = super(req, document)

View file

@ -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 {