fixed bug in array & richtext

This commit is contained in:
Kevin Jahns
2016-06-03 19:04:47 +02:00
parent bc856a09f5
commit e77a753708
3 changed files with 10 additions and 4 deletions

View File

@@ -367,12 +367,16 @@ module.exports = function (Y /* :any */) {
}
}
if (defined == null) {
var isGarbageCollected = yield* this.isGarbageCollected(op.id)
var opid = op.id
var isGarbageCollected = yield* this.isGarbageCollected(opid)
if (!isGarbageCollected) {
yield* Y.Struct[op.struct].execute.call(this, op)
yield* this.addOperation(op)
yield* this.store.operationAdded(this, op)
if (!Y.utils.compareIds(opid, op.id)) {
// operationAdded changed op
op = yield* this.getOperation(opid)
}
// if insertion, try to combine with left
yield* this.tryCombineWithLeft(op)
}

View File

@@ -74,7 +74,7 @@ function getRandomNumber (n) {
g.getRandomNumber = getRandomNumber
function getRandomString () {
var chars = 'abcdefäö'
var chars = 'abcdefghijklmnopqrstuvwxyzäüöABCDEFGHIJKLMNOPQRSTUVWXYZÄÜÖ'
var char = chars[getRandomNumber(chars.length)] // ü\n\n\n\n\n\n\n'
var length = getRandomNumber(7)
var string = ''