@@ -192,9 +192,7 @@ Sheets.prototype.getRange = function(id, sheetId, rangeInfo) {
192192 // Retrieve cells (returns in one array)
193193 return self . getCells ( id , sheetId )
194194 . then ( function ( cells ) {
195- var currentRow = parseInt ( _ . first ( cells ) . row , 10 ) ;
196195 var currentColumn = _ . first ( cells ) . column ;
197- var currentColIndex = self . columnLetters . indexOf ( currentColumn ) ;
198196 var row = [ ] ;
199197
200198 // Convert rows string presentation into integer
@@ -204,9 +202,9 @@ Sheets.prototype.getRange = function(id, sheetId, rangeInfo) {
204202
205203 // Get used columns from cells to pickup start and stop
206204 // NOTE: .sort() does not work with numbers
207- var cellColumnLetters = _ . pluck ( cells , 'column' ) . sort ( ) ;
205+ var cellColumnLetters = _ . map ( cells , 'column' ) . sort ( ) ;
208206 var cellRowNumbers = _ . chain ( cells )
209- . pluck ( 'row' )
207+ . map ( 'row' )
210208 . sortBy ( )
211209 . value ( ) ;
212210
@@ -228,7 +226,7 @@ Sheets.prototype.getRange = function(id, sheetId, rangeInfo) {
228226 currentPadColumn = self . columnLetters [ columnIndex ] ;
229227 // Try to find the cell based on current row and column
230228 // if not found, place empty content there instead
231- cell = _ . findWhere ( cells , { row : currentPadRow , column : currentPadColumn } ) ;
229+ cell = _ . find ( cells , { row : currentPadRow , column : currentPadColumn } ) ;
232230 if ( cell ) {
233231 row . push ( cell ) ;
234232 } else {
0 commit comments