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

pull/1/head
ansuz 9 years ago
parent 96e03fcfa4
commit df78d284c4

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

Loading…
Cancel
Save