0
|
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;
|