Fixed OT some uncaught error and exceptions

This commit is contained in:
Wu Cheng-Han 2015-09-24 11:56:55 +08:00
parent c06fb7a526
commit 92493e307a
3 changed files with 4 additions and 4 deletions

View file

@ -25,8 +25,8 @@ ot.EditorClient = (function () {
SelfMeta.prototype.transform = function (operation) { SelfMeta.prototype.transform = function (operation) {
return new SelfMeta( return new SelfMeta(
this.selectionBefore.transform(operation), (this.selectionBefore ? this.selectionBefore.transform(operation) : null),
this.selectionAfter.transform(operation) (this.selectionAfter ? this.selectionAfter.transform(operation) : null)
); );
}; };

File diff suppressed because one or more lines are too long

View file

@ -32,7 +32,7 @@ ot.SocketIOAdapter = (function () {
self.trigger('selection', clientId, selection); self.trigger('selection', clientId, selection);
}); });
socket.on('reconnect', function () { socket.on('reconnect', function () {
self.trigger('reconnect'); //self.trigger('reconnect');
}); });
} }