From cb979844f6ac82108327d81983470512ac52e4be Mon Sep 17 00:00:00 2001 From: ansuz Date: Sun, 17 Apr 2016 14:06:30 +0200 Subject: [PATCH] implement text patching at application layer --- www/common/RealtimeTextarea.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/www/common/RealtimeTextarea.js b/www/common/RealtimeTextarea.js index bbfcecce5..ee9fcdeb8 100644 --- a/www/common/RealtimeTextarea.js +++ b/www/common/RealtimeTextarea.js @@ -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;