Mercurial > nebulaweb3
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/node_modules/tablesaw/src/tables-init.js Sat May 31 09:21:51 2025 +0800 @@ -0,0 +1,21 @@ +/* +* tablesaw: A set of plugins for responsive tables +* Copyright (c) 2013 Filament Group, Inc. +* MIT License +*/ + +(function(win) { + "use strict"; + + // DOM-ready auto-init of plugins. + // Many plugins bind to an "enhance" event to init themselves on dom ready, or when new markup is inserted into the DOM + // Use raw DOMContentLoaded instead of shoestring (may have issues in Android 2.3, exhibited by stack table) + if (!("Tablesaw" in win)) { + throw new Error("Tablesaw library not found."); + } + if (!("init" in Tablesaw)) { + throw new Error("Your tablesaw-init.js is newer than the core Tablesaw version."); + } + + Tablesaw.init(); +})(typeof window !== "undefined" ? window : this);