mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Merge pull request #786 from mwiencek/master
Add AMD/browserify support
This commit is contained in:
commit
430f8c533f
@ -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;
|
||||
}));
|
||||
|
@ -34,10 +34,12 @@
|
||||
"natural",
|
||||
"jquery-plugin"
|
||||
],
|
||||
"main": "js/tablesorter.js",
|
||||
"main": "js/jquery.tablesorter.js",
|
||||
"files": [
|
||||
"css/theme.default.css",
|
||||
"js/jquery.tablesorter.js",
|
||||
"js/jquery.tablesorter.min.js",
|
||||
"js/jquery.tablesorter.widgets.js",
|
||||
"js/jquery.tablesorter.widgets.min.js",
|
||||
"addons/pager/"
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user