more testing and crap

This commit is contained in:
Caleb James DeLisle committed 2016-03-25 12:45:51 +01:00
1 parent 4b35a145e3
commit 420a7098a6
5 files changed
+68 -44

No files matched your search

+1
View File
@@ -1163,6 +1163,7 @@ module.exports.create = function (userName, authToken, channelId, initialState,
Common.assert(typeof(initialState) === 'string');
var realtime = ChainPad.create(userName, authToken, channelId, initialState, conf);
return {
Sha: Sha,
onPatch: enterChainPad(realtime, function (handler) {
Common.assert(typeof(handler) === 'function');
realtime.patchHandlers.push(handler);