Commit a15cd4d2 authored by Boris Kocherov's avatar Boris Kocherov

demo: fix xmla_request_retry

parent 7d2a4d98
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
function xmla_request_retry(func, settings) { function xmla_request_retry(func, settings) {
var queue, var queue,
urls = settings.urls, urls = settings.urls || [""],
i; i;
function make_request(url) { function make_request(url) {
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
} }
queue = make_request(urls[0])(); queue = make_request(urls[0])();
for (i = 1; i < settings.urls.length; i += 1) { for (i = 1; i < urls.length; i += 1) {
queue.push(undefined, make_request(urls[i])); queue.push(undefined, make_request(urls[i]));
} }
return queue; return queue;
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
function xmla_request_retry(func, settings) { function xmla_request_retry(func, settings) {
var queue, var queue,
urls = settings.urls, urls = settings.urls || [""],
i; i;
function make_request(url) { function make_request(url) {
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
} }
queue = make_request(urls[0])(); queue = make_request(urls[0])();
for (i = 1; i < settings.urls.length; i += 1) { for (i = 1; i < urls.length; i += 1) {
queue.push(undefined, make_request(urls[i])); queue.push(undefined, make_request(urls[i]));
} }
return queue; return 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