committing latest changes for review

This commit is contained in:
ansuz
2016-02-01 15:28:33 +01:00
parent 2016550e01
commit ac0f7852fc
2 changed files with 26 additions and 12 deletions

View File

@@ -168,7 +168,21 @@ define([
var realtime = socket.realtime = ChainPad.create(userName,
passwd,
channel,
$(textarea).val());
$(textarea).val(),
{
transformFunction: function (text, toTransform, transformBy) {
console.log({
text: text,
toTransform: toTransform,
transformBy: transformBy
});
// returning false breaks out of the loop
// which transforms conflicting operations
// in theory this should prevent us from producing bad JSON
return null;
}
});
onEvent = function () {
if (isErrorState || initializing) { return; }