Skip to content

Commit 5e725e0

Browse files
authored
Cache labels.length
1 parent 01a4c25 commit 5e725e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scales/scale.time.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ module.exports = function() {
554554
datasets[i][j] = timestamp;
555555
}
556556
} else {
557-
for (j = 0; j < labels.length; ++j) {
557+
for (j = 0, jlen = labels.length; j < jlen; ++j) {
558558
timestamps.push(labels[j]);
559559
}
560560
datasets[i] = labels.slice(0);

0 commit comments

Comments
 (0)