mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Build: Stop build widget option warnings
This commit is contained in:
parent
eb0692dbc8
commit
6e46f7aecb
@ -1,4 +1,4 @@
|
|||||||
/*! Widget: Build Table - updated 11/26/2016 (v2.28.0) *//*
|
/*! Widget: Build Table - updated 3/14/2017 (v2.28.6) *//*
|
||||||
* for tableSorter v2.16.0+
|
* for tableSorter v2.16.0+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -12,6 +12,8 @@
|
|||||||
// data.header contains an array of header titles
|
// data.header contains an array of header titles
|
||||||
// data.rows contains an array of rows which contains an array of cells
|
// data.rows contains an array of rows which contains an array of cells
|
||||||
bt = ts.buildTable = function(tar, c){
|
bt = ts.buildTable = function(tar, c){
|
||||||
|
// add build options to defaults to prevent warnings
|
||||||
|
$.extend(true, ts.defaults.widgetOptions, bt.defaults);
|
||||||
// add table if one doesn't exist
|
// add table if one doesn't exist
|
||||||
var $tbl = tar.nodeName === 'TABLE' ? $(tar) : $('<table>').appendTo(tar),
|
var $tbl = tar.nodeName === 'TABLE' ? $(tar) : $('<table>').appendTo(tar),
|
||||||
table = $tbl[0],
|
table = $tbl[0],
|
||||||
|
Loading…
Reference in New Issue
Block a user