Mercurial > nebulaweb3
comparison default/node_modules/tablesaw/src/tables-init.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 /* | |
2 * tablesaw: A set of plugins for responsive tables | |
3 * Copyright (c) 2013 Filament Group, Inc. | |
4 * MIT License | |
5 */ | |
6 | |
7 (function(win) { | |
8 "use strict"; | |
9 | |
10 // DOM-ready auto-init of plugins. | |
11 // Many plugins bind to an "enhance" event to init themselves on dom ready, or when new markup is inserted into the DOM | |
12 // Use raw DOMContentLoaded instead of shoestring (may have issues in Android 2.3, exhibited by stack table) | |
13 if (!("Tablesaw" in win)) { | |
14 throw new Error("Tablesaw library not found."); | |
15 } | |
16 if (!("init" in Tablesaw)) { | |
17 throw new Error("Your tablesaw-init.js is newer than the core Tablesaw version."); | |
18 } | |
19 | |
20 Tablesaw.init(); | |
21 })(typeof window !== "undefined" ? window : this); |