Build: Stop build widget option warnings

This commit is contained in:
Rob Garrison 2017-03-14 17:03:39 -05:00
parent eb0692dbc8
commit 6e46f7aecb

View File

@ -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+
* by Rob Garrison
*/
@ -12,6 +12,8 @@
// data.header contains an array of header titles
// data.rows contains an array of rows which contains an array of cells
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
var $tbl = tar.nodeName === 'TABLE' ? $(tar) : $('<table>').appendTo(tar),
table = $tbl[0],