Skip to content

Commit e288e67

Browse files
committed
Replace variable name |runner| with |task|
[email protected] Review URL: https://codereview.appspot.com/133550043
1 parent 3f2de00 commit e288e67

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/example/benchmark.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,13 @@
210210
}
211211

212212
function runNextTask() {
213-
var runner = tasks.shift();
214-
if (runner == undefined) {
213+
var task = tasks.shift();
214+
if (task == undefined) {
215215
addToLog('Finished');
216216
destroyAllSockets();
217217
return;
218218
}
219-
timerID = setTimeout(runner, 0);
219+
timerID = setTimeout(task, 0);
220220
}
221221

222222
function buildLegendString(config) {
@@ -259,11 +259,11 @@
259259
for (var size = config.startSize;
260260
size <= config.stopThreshold;
261261
++multiplierIndex) {
262-
var runner = stepFunc.bind(
262+
var task = stepFunc.bind(
263263
null,
264264
size,
265265
config);
266-
tasks.push(runner);
266+
tasks.push(task);
267267
size *= config.multipliers[
268268
multiplierIndex % config.multipliers.length];
269269
}

src/example/xhr_benchmark.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,11 @@
316316
for (var size = config.startSize;
317317
size <= config.stopThreshold;
318318
++multiplierIndex) {
319-
var runner = stepFunc.bind(
319+
var task = stepFunc.bind(
320320
null,
321321
size,
322322
config);
323-
tasks.push(runner);
323+
tasks.push(task);
324324
size *= config.multipliers[
325325
multiplierIndex % config.multipliers.length];
326326
}

0 commit comments

Comments
 (0)