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