tablesaw-init.js 702 B

123456789101112131415161718
  1. /*! Tablesaw - v3.1.2 - 2019-03-19
  2. * https://github.com/filamentgroup/tablesaw
  3. * Copyright (c) 2019 Filament Group; Licensed MIT */
  4. (function(win) {
  5. "use strict";
  6. // DOM-ready auto-init of plugins.
  7. // Many plugins bind to an "enhance" event to init themselves on dom ready, or when new markup is inserted into the DOM
  8. // Use raw DOMContentLoaded instead of shoestring (may have issues in Android 2.3, exhibited by stack table)
  9. if (!("Tablesaw" in win)) {
  10. throw new Error("Tablesaw library not found.");
  11. }
  12. if (!("init" in Tablesaw)) {
  13. throw new Error("Your tablesaw-init.js is newer than the core Tablesaw version.");
  14. }
  15. Tablesaw.init();
  16. })(typeof window !== "undefined" ? window : this);