This commit is contained in:
Kevin Jahns
2016-04-22 22:09:49 +01:00
parent 895ec86ff6
commit 90b7b01e9a
5 changed files with 64 additions and 88 deletions

View File

@@ -247,7 +247,7 @@ module.exports = function (Y /* : any*/) {
return id1 === id2
} else {
return id1[0] === id2[0] && id1[1] === id2[1]
}
}
}
Y.utils.compareIds = compareIds
@@ -265,7 +265,7 @@ module.exports = function (Y /* : any*/) {
}
}
Y.utils.matchesId = matchesId
function getLastId (op) {
if (op.content == null || op.content.length === 1) {
return op.id
@@ -298,8 +298,9 @@ module.exports = function (Y /* : any*/) {
I tried to optimize this for performance, therefore no highlevel operations.
*/
class SmallLookupBuffer extends Store {
constructor () {
super(...arguments)
constructor (arg) {
// super(...arguments) -- do this when this is supported by stable nodejs
super(arg)
this.writeBuffer = createEmptyOpsArray(5)
this.readBuffer = createEmptyOpsArray(10)
}