Merge pull request #240 from lorenzhs/fetchlines

Fix bug where no (more) lines were loaded despite there being more
l-merge-prefix cordova-0.0.1
David Cormier 11 years ago
commit 2cc4172ae0
  1. 4
      js/glowingbear.js

@ -455,10 +455,6 @@ function($rootScope,
// the read marker position correct
buffer.lastSeen -= oldLength;
}
// We request more lines, but didn't get more. No more lines!
if (oldLength === buffer.lines.length) {
buffer.allLinesFetched = true;
}
// We requested more lines than we got, no more lines.
if (linesReceivedCount < numLines) {
buffer.allLinesFetched = true;

Loading…
Cancel
Save