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) ->
return unless state?
if deserializer = @getDeserializer(state)
if deserializer = @get(state)
stateVersion = state.get?('version') ? state.version
return if deserializer.version? and deserializer.version isnt stateVersion
if (state instanceof Document) and not deserializer.acceptsDocuments