streaksheet
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -49,3 +49,9 @@ "use strict"; | ||
value: function getSectionRow(row) { | ||
return this.results[row]; | ||
var sectionRow = this.results[row]; | ||
if (!sectionRow) { | ||
throw new Error("getSectionRow called with invalid row index: ".concat(row)); | ||
} | ||
return sectionRow; | ||
} | ||
@@ -52,0 +58,0 @@ }]); |
@@ -81,4 +81,4 @@ "use strict"; | ||
return { | ||
start: adjustNegativeSectionOrRow(sectionRowMatcher.getSectionRow(Math.max(0, visibleRowStartIndex - bufferAmount))), | ||
stop: adjustNegativeSectionOrRow(sectionRowMatcher.getSectionRow(Math.min(totalRowCount - 1, visibleRowStopIndex + bufferAmount))) | ||
start: adjustNegativeSectionOrRow(sectionRowMatcher.getSectionRow(Math.min(totalRowCount - 1, Math.max(0, visibleRowStartIndex - bufferAmount)))), | ||
stop: adjustNegativeSectionOrRow(sectionRowMatcher.getSectionRow(Math.min(totalRowCount - 1, Math.max(0, visibleRowStopIndex + bufferAmount)))) | ||
}; | ||
@@ -85,0 +85,0 @@ } // TODO if we want to support multiple data handlers, loop over all handlers here |
{ | ||
"name": "streaksheet", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"author": "Chris Cowan <agentme49@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
585606
5114