mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Merge pull request #338 from lemoinem/fix/fix-jquery-version-comparison
jQuery version comparison bug: parseFloat does not see 1.10 > 1.4
This commit is contained in:
commit
aad89524b1
@ -832,7 +832,7 @@
|
||||
if (c.debug) { $.data( table, 'startoveralltimer', new Date()); }
|
||||
// constants
|
||||
c.supportsTextContent = $('<span>x</span>')[0].textContent === 'x';
|
||||
c.supportsDataObject = parseFloat($.fn.jquery) >= 1.4;
|
||||
c.supportsDataObject = (function(version) { version[0] = parseInt(version[0]) ; return (version[0] > 1) || (version[0] == 1 && parseInt(version[1]) >= 4); })($.fn.jquery.split("."));
|
||||
// digit sort text location; keeping max+/- for backwards compatibility
|
||||
c.string = { 'max': 1, 'min': -1, 'max+': 1, 'max-': -1, 'zero': 0, 'none': 0, 'null': 0, 'top': true, 'bottom': false };
|
||||
// add table theme class only if there isn't already one there
|
||||
|
Loading…
Reference in New Issue
Block a user