Remove that single \for.. in\ loop that appearantly causes troubles for istvan (why am I fixing this again?) fixes #46

This commit is contained in:
Kevin Jahns 2016-02-15 15:21:11 +01:00
parent bca7477ca5
commit 68c21131d3

View File

@ -214,8 +214,8 @@ module.exports = function (Y /* :any */) {
* check if was deleted, apply a delete operation after op was applied
*/
apply (ops) {
for (var key in ops) {
var o = ops[key]
for (var i = 0; i < ops.length; i++) {
var o = ops[i]
if (o.id == null || o.id[0] !== this.y.connector.userId) {
var required = Y.Struct[o.struct].requiredOps(o)
this.whenOperationsExist(required, o)