implement text patching at application layer

This commit is contained in:
ansuz 2016-04-17 14:06:30 +02:00
parent 4a41575e6d
commit cb979844f6

View file

@ -18,10 +18,9 @@ define([
'/common/messages.js',
'/bower_components/reconnectingWebsocket/reconnecting-websocket.js',
'/common/crypto.js',
'/common/TextPatcher.js',
'/common/chainpad.js',
'/bower_components/jquery/dist/jquery.min.js',
], function (Messages, ReconnectingWebSocket, Crypto, TextPatcher) {
], function (Messages, ReconnectingWebSocket, Crypto) {
var $ = window.jQuery;
var ChainPad = window.ChainPad;
var PARANOIA = true;
@ -200,12 +199,6 @@ define([
}
},200);
// TODO implement callbacks and replace sharejs entirely
toReturn.patchText = TextPatcher.create({
realtime: realtime,
logging: true
});
realtime.start();
});
return toReturn;