summaryrefslogtreecommitdiff
path: root/public/vendor/ot/editor-client.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xpublic/vendor/ot/editor-client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/vendor/ot/editor-client.js b/public/vendor/ot/editor-client.js
index b01afb46..212c4279 100755
--- a/public/vendor/ot/editor-client.js
+++ b/public/vendor/ot/editor-client.js
@@ -25,8 +25,8 @@ ot.EditorClient = (function () {
SelfMeta.prototype.transform = function (operation) {
return new SelfMeta(
- this.selectionBefore.transform(operation),
- this.selectionAfter.transform(operation)
+ (this.selectionBefore ? this.selectionBefore.transform(operation) : null),
+ (this.selectionAfter ? this.selectionAfter.transform(operation) : null)
);
};