Commit 7c4f1757 authored by Romain Courteaud's avatar Romain Courteaud

fixup [erp5_core] Make jsl happy

parent 7610fcb1
...@@ -78,20 +78,21 @@ ...@@ -78,20 +78,21 @@
.onLoop(function () { .onLoop(function () {
var data_textarea = this.element.querySelector('textarea'), var data_textarea = this.element.querySelector('textarea'),
gadget = this, gadget = this,
state_dict = {}; state_dict = {},
queue = new RSVP.Queue();
if (gadget.state.paused) { if (gadget.state.paused) {
return; return queue;
} }
if (!gadget.state.continue_loop) { if (!gadget.state.continue_loop) {
if (gadget.state.last_call) { if (gadget.state.last_call) {
// Stop reading test output // Stop reading test output
return; return queue;
} }
state_dict.last_call = true; state_dict.last_call = true;
} }
return new RSVP.Queue() return queue
.push(function () { .push(function () {
return jIO.util.ajax({ return jIO.util.ajax({
type: "GET", type: "GET",
......
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