Should update code when other player changes it again.

This commit is contained in:
Nick Winter 2014-02-08 15:32:14 -08:00
parent 74ddb1135a
commit f2bcf019fa

View file

@ -248,7 +248,7 @@ module.exports = class SpellView extends View
] ]
@onCodeChangeMetaHandler = => @onCodeChangeMetaHandler = =>
return if @eventsSuppressed return if @eventsSuppressed
if @spell.hasChangedSignificantly @getSource(), @spellThang.aether.raw if not @spellThang or @spell.hasChangedSignificantly @getSource(), @spellThang.aether.raw
callback() for callback in onSignificantChange # Do these first callback() for callback in onSignificantChange # Do these first
callback() for callback in onAnyChange # Then these callback() for callback in onAnyChange # Then these
@aceDoc.on 'change', @onCodeChangeMetaHandler @aceDoc.on 'change', @onCodeChangeMetaHandler