From 6e46f7aecbcc4a754a818d3cfb5764fe5e1e78fe Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 14 Mar 2017 17:03:39 -0500 Subject: [PATCH] Build: Stop build widget option warnings --- js/widgets/widget-build-table.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/widgets/widget-build-table.js b/js/widgets/widget-build-table.js index 9acd0b16..926624bb 100644 --- a/js/widgets/widget-build-table.js +++ b/js/widgets/widget-build-table.js @@ -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) : $('').appendTo(tar), table = $tbl[0],