This repository was archived by the owner on Feb 5, 2024. It is now read-only.
File tree 4 files changed +61
-8
lines changed
4 files changed +61
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tabletop" ,
3
- "version" : " 1.5.2 " ,
3
+ "version" : " 1.5.3 " ,
4
4
"description" : " **Tabletop.js** takes a Google Spreadsheet and makes it easily accessible through JavaScript. With zero dependencies!" ,
5
5
"main" : " src/tabletop.js" ,
6
6
"directories" : {
Original file line number Diff line number Diff line change 455
455
options . tabletop . log ( 'Missing data for ' + this . name + ', make sure you didn\'t forget column headers' ) ;
456
456
this . originalColumns = [ ] ;
457
457
this . elements = [ ] ;
458
- this . onReady . call ( this ) ;
458
+ this . ready ( ) ;
459
459
return ;
460
460
}
461
461
487
487
element . rowNumber = i + 1 ;
488
488
}
489
489
490
- if ( options . postProcess ) {
491
- options . postProcess ( element ) ;
492
- }
493
-
494
490
this . elements . push ( element ) ;
495
491
}
496
492
497
493
if ( options . prettyColumnNames ) {
498
494
this . fetchPrettyColumns ( ) ;
499
495
} else {
500
- this . onReady . call ( this ) ;
496
+ this . ready ( ) ;
501
497
}
502
498
} ;
503
499
521
517
} ) ;
522
518
} ,
523
519
520
+ beforeReady : function ( ) {
521
+ if ( this . postProcess ) {
522
+ for ( i = 0 , ilen = this . elements . length ; i < ilen ; i ++ ) {
523
+ this . postProcess ( element ) ;
524
+ }
525
+ }
526
+ } ,
527
+
524
528
ready : function ( ) {
529
+ this . beforeReady ( ) ;
525
530
this . onReady . call ( this ) ;
526
531
} ,
527
532
You can’t perform that action at this time.
0 commit comments