Call get instead of getDeserializer

This commit is contained in:
Kevin Sawicki 2013-10-02 15:38:21 -07:00
parent 08177feb67
commit 7633a2a7d7

View File

@ -23,7 +23,7 @@ class DeserializerManager
deserialize: (state, params) -> deserialize: (state, params) ->
return unless state? return unless state?
if deserializer = @getDeserializer(state) if deserializer = @get(state)
stateVersion = state.get?('version') ? state.version stateVersion = state.get?('version') ? state.version
return if deserializer.version? and deserializer.version isnt stateVersion return if deserializer.version? and deserializer.version isnt stateVersion
if (state instanceof Document) and not deserializer.acceptsDocuments if (state instanceof Document) and not deserializer.acceptsDocuments