Skip to content
Snippets Groups Projects
Commit 68c21131 authored by Kevin Jahns's avatar Kevin Jahns
Browse files

Remove that single \`for.. in\` loop that appearantly causes troubles for...

Remove that single \`for.. in\` loop that appearantly causes troubles for istvan (why am I fixing this again?) fixes #46
parent bca7477c
No related branches found
No related tags found
No related merge requests found
...@@ -214,8 +214,8 @@ module.exports = function (Y /* :any */) { ...@@ -214,8 +214,8 @@ module.exports = function (Y /* :any */) {
* check if was deleted, apply a delete operation after op was applied * check if was deleted, apply a delete operation after op was applied
*/ */
apply (ops) { apply (ops) {
for (var key in ops) { for (var i = 0; i < ops.length; i++) {
var o = ops[key] var o = ops[i]
if (o.id == null || o.id[0] !== this.y.connector.userId) { if (o.id == null || o.id[0] !== this.y.connector.userId) {
var required = Y.Struct[o.struct].requiredOps(o) var required = Y.Struct[o.struct].requiredOps(o)
this.whenOperationsExist(required, o) this.whenOperationsExist(required, o)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment