Global: Use local $ inside IIFE. Fixes #1542

This commit is contained in:
Rob Garrison 2018-04-19 10:02:45 -05:00
parent 200fcacb3b
commit 2b5812e308
4 changed files with 7 additions and 7 deletions

View File

@ -456,7 +456,7 @@
th = result[2]; // headers
}
l = d && d.length;
if (d instanceof jQuery) {
if (d instanceof $) {
if (p.processAjaxOnInit) {
// append jQuery object
c.$tbodies.eq(0).empty();

View File

@ -1397,7 +1397,7 @@
} else if (
!$row ||
// row is a jQuery object?
!( $row instanceof jQuery ) ||
!( $row instanceof $ ) ||
// row contained in the table?
( ts.getClosest( $row, 'table' )[ 0 ] !== c.table )
) {

View File

@ -1,4 +1,4 @@
/*! Widget: Build Table - updated 2018-03-18 (v2.30.0) *//*
/*! Widget: Build Table - updated 2018-04-19 (v2.30.1) *//*
* for tableSorter v2.16.0+
* by Rob Garrison
*/
@ -26,7 +26,7 @@
// determine type: html, json, array, csv, object
runType = function(d) {
var t = $.type(d),
jq = d instanceof jQuery;
jq = d instanceof $;
// run any processing if set
if ( typeof p === 'function' ) { d = p(d, wo); }
// store processed data in table.config.data
@ -66,7 +66,7 @@
return false;
}
if ( d instanceof jQuery ) {
if ( d instanceof $ ) {
// get data from within a jQuery object (csv)
runType( $.trim( d.html() ) );
} else if ( d && ( d.hasOwnProperty('url') || typ === 'json' ) ) {
@ -309,7 +309,7 @@
// data may be a jQuery object after processing
bt.html = function(table, data, wo) {
var $t = $(table);
if ( data instanceof jQuery ) {
if ( data instanceof $ ) {
$t.empty().append(data);
} else {
$t.html(data);

View File

@ -773,7 +773,7 @@
th = result[ 2 ]; // headers
}
l = d && d.length;
if ( d instanceof jQuery ) {
if ( d instanceof $ ) {
if ( wo.pager_processAjaxOnInit ) {
// append jQuery object
c.$tbodies.eq( 0 ).empty();