initial state should be valid JSON so JSON parse doesn't fail

This commit is contained in:
ansuz 2016-04-01 10:44:23 +02:00
parent 96e03fcfa4
commit df78d284c4

View File

@ -148,7 +148,7 @@ define([
channel, // the channel we're to connect to
// initialState argument. (optional)
config.initialState || '',
config.initialState || '{}',
// transform function (optional), which handles conflicts
{ transformFunction: config.transformFunction });