Commit a971d4e9 authored by Romain Courteaud's avatar Romain Courteaud Committed by Vincent Bechu

ReplicateStorage: ensure operation are correctly ordered

parent b5fb51e6
......@@ -218,10 +218,12 @@
queue
.push(function () {
if (argument_list.length > 0) {
var argument_array = argument_list.shift();
argument_array[0] = queue;
var argument_array = argument_list.shift(),
sub_queue = new RSVP.Queue();
argument_array[0] = sub_queue;
function_used.apply(context, argument_array);
pushAndExecute(queue);
return sub_queue;
}
});
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment