mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Support for AMD, browserify environments
This commit is contained in:
parent
773c75ee77
commit
15b2a789e2
@ -16,7 +16,15 @@
|
||||
*/
|
||||
/*jshint browser:true, jquery:true, unused:false, expr: true */
|
||||
/*global console:false, alert:false */
|
||||
!(function($) {
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
module.exports = factory(require('jquery'));
|
||||
} else {
|
||||
factory(jQuery);
|
||||
}
|
||||
}(function($) {
|
||||
"use strict";
|
||||
$.extend({
|
||||
/*jshint supernew:true */
|
||||
@ -1940,4 +1948,5 @@
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
return ts;
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user