From a10933beef6425bb640bb8c31f6c684c5a811b28 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Wed, 27 Apr 2016 12:02:39 +0100 Subject: [PATCH] fixed awaitedInserts (critical for y-richtext) --- dist | 2 +- src/Utils.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist b/dist index b958b72f..f21e1c54 160000 --- a/dist +++ b/dist @@ -1 +1 @@ -Subproject commit b958b72f1df825af1641a2a5896f2425935465f9 +Subproject commit f21e1c549a12275c36980fe6d117fa1589f1ff69 diff --git a/src/Utils.js b/src/Utils.js index 4c82919d..94e3ffcc 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -123,9 +123,9 @@ module.exports = function (Y /* : any*/) { w.right = op.id // exclude the effect of w in op op.left = w.left - } else if (Y.utils.matchesId(w, op.right)) { + } else if (Y.utils.compareIds(w.id, op.right)) { // similar.. - w.left = op.id + w.left = Y.utils.getLastId(op) op.right = w.right } }