diff options
Diffstat (limited to 'public/vendor/ot/editor-client.js')
-rwxr-xr-x | public/vendor/ot/editor-client.js | 4 |
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) ); }; |