Skip to content

Commit

Permalink
Merge pull request #203 from epochjs/rt-empty-ticks
Browse files Browse the repository at this point in the history
Closes #200; Fixed tick updates with no data.
  • Loading branch information
rsandor committed Oct 14, 2015
2 parents 0802497 + 69a3acd commit d2fe48e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/js/epoch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2800,6 +2800,9 @@ Epoch.Time.Plot = (function(superClass) {
if (!((++this._tickTimer) % this.options.ticks.time)) {
this._pushTick(this.options.windowSize, newTime, true);
}
if (!(this._ticks.length > 0)) {
return;
}
if (!(this._ticks[0].x - (this.w() / this.pixelRatio) >= 0)) {
return this._ticks[0].exit = true;
}
Expand Down
Loading

0 comments on commit d2fe48e

Please sign in to comment.