comparison default/node_modules/tablesaw/src/tables.intro.jquery.js @ 0:1d038bc9b3d2 default tip

Up:default
author Liny <dev@neowd.com>
date Sat, 31 May 2025 09:21:51 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1d038bc9b3d2
1 (function (root, factory) {
2 if (typeof define === 'function' && define.amd) {
3 define(["jquery"], function (jQuery) {
4 return (root.Tablesaw = factory(jQuery, root));
5 });
6 } else if (typeof exports === 'object') {
7 if( "document" in root ) {
8 module.exports = factory(require('jquery'), root);
9 } else {
10 // special jQuery case for CommonJS (pass in a window)
11 module.exports = factory(require('jquery')(root), root);
12 }
13 } else {
14 root.Tablesaw = factory(jQuery, root);
15 }
16 }(typeof window !== "undefined" ? window : this, function ($, window) {
17 "use strict";
18
19 var document = window.document;