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 @@ ...@@ -218,10 +218,12 @@
queue queue
.push(function () { .push(function () {
if (argument_list.length > 0) { if (argument_list.length > 0) {
var argument_array = argument_list.shift(); var argument_array = argument_list.shift(),
argument_array[0] = queue; sub_queue = new RSVP.Queue();
argument_array[0] = sub_queue;
function_used.apply(context, argument_array); function_used.apply(context, argument_array);
pushAndExecute(queue); 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