mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-30 18:18:45 +03:00
Call get instead of getDeserializer
This commit is contained in:
parent
08177feb67
commit
7633a2a7d7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user