Skip to content

Commit 69a3acd

Browse files
committed
Closes #200; Fixed tick updates with no data.
1 parent 0802497 commit 69a3acd

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

dist/js/epoch.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,6 +2800,9 @@ Epoch.Time.Plot = (function(superClass) {
28002800
if (!((++this._tickTimer) % this.options.ticks.time)) {
28012801
this._pushTick(this.options.windowSize, newTime, true);
28022802
}
2803+
if (!(this._ticks.length > 0)) {
2804+
return;
2805+
}
28032806
if (!(this._ticks[0].x - (this.w() / this.pixelRatio) >= 0)) {
28042807
return this._ticks[0].exit = true;
28052808
}

0 commit comments

Comments
 (0)