fixed ds syncing bug

This commit is contained in:
Kevin Jahns
2017-10-26 19:12:33 +02:00
parent e6b5e258fb
commit 96c6aa2751
8 changed files with 31 additions and 15 deletions

View File

@@ -228,7 +228,7 @@ var arrayTransactions = [
var pos = chance.integer({ min: 0, max: yarray.length })
yarray.insert(pos, content)
},
/*function insertTypeArray (t, user, chance) {
function insertTypeArray (t, user, chance) {
const yarray = user.get('array', Y.Array)
var pos = chance.integer({ min: 0, max: yarray.length })
yarray.insert(pos, [Y.Array])
@@ -243,7 +243,7 @@ var arrayTransactions = [
map.set('someprop', 42)
map.set('someprop', 43)
map.set('someprop', 44)
},*/
},
function _delete (t, user, chance) {
const yarray = user.get('array', Y.Array)
var length = yarray.length