Skip to content

Commit

Permalink
Core: Only validate options while debugging. Closes #1528
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Mar 19, 2018
1 parent 4f9cf81 commit 745229d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/jquery.tablesorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,10 @@
ts.setupParsers( c );
// start total row count at zero
c.totalRows = 0;
ts.validateOptions( c );
// only validate options while debugging. See #1528
if (c.debug) {
ts.validateOptions( c );
}
// build the cache for the tbody cells
// delayInit will delay building the cache until the user starts a sort
if ( !c.delayInit ) { ts.buildCache( c ); }
Expand Down

0 comments on commit 745229d

Please sign in to comment.