mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Global: Use local $ inside IIFE. Fixes #1542
This commit is contained in:
parent
200fcacb3b
commit
2b5812e308
@ -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();
|
||||
|
@ -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 )
|
||||
) {
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user