Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit a710a67

Browse files
committed
Tablesaw 2.0.0: Hemlock
1 parent 829c0c6 commit a710a67

File tree

8 files changed

+46
-55
lines changed

8 files changed

+46
-55
lines changed

dist/bare/tablesaw.bare.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Tablesaw - v1.0.5 - 2015-10-09
1+
/*! Tablesaw - v2.0.0 - 2015-10-09
22
* https://github.com/filamentgroup/tablesaw
33
* Copyright (c) 2015 Filament Group; Licensed MIT */
44

dist/stackonly/tablesaw.stackonly.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Tablesaw - v1.0.5 - 2015-10-09
1+
/*! Tablesaw - v2.0.0 - 2015-10-09
22
* https://github.com/filamentgroup/tablesaw
33
* Copyright (c) 2015 Filament Group; Licensed MIT */
44

dist/stackonly/tablesaw.stackonly.js

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
1-
/*! Tablesaw - v1.0.5 - 2015-10-09
1+
/*! Tablesaw - v2.0.0 - 2015-10-09
22
* https://github.com/filamentgroup/tablesaw
33
* Copyright (c) 2015 Filament Group; Licensed MIT */
4-
;(function( $ ) {
5-
6-
// Cut the mustard
7-
if( !( 'querySelector' in document ) ||
8-
( window.blackberry && !window.WebKitPoint ) ||
9-
window.operamini ) {
10-
return;
11-
} else {
12-
$( document.documentElement ).addClass( 'tablesaw-enhanced' );
13-
14-
// DOM-ready auto-init of plugins.
15-
// Many plugins bind to an "enhance" event to init themselves on dom ready, or when new markup is inserted into the DOM
16-
$( function(){
17-
$( document ).trigger( "enhance.tablesaw" );
18-
});
19-
}
20-
21-
})( jQuery );
224
/*
235
* tablesaw: A set of plugins for responsive tables
246
* Stack and Column Toggle tables
@@ -34,12 +16,19 @@ if( typeof Tablesaw === "undefined" ) {
3416
columnBtnText: 'Columns',
3517
columnsDialogError: 'No eligible columns.',
3618
sort: 'Sort'
37-
}
19+
},
20+
// cut the mustard
21+
mustard: 'querySelector' in document &&
22+
( !window.blackberry || window.WebKitPoint ) &&
23+
!window.operamini
3824
};
3925
}
4026
if( !Tablesaw.config ) {
4127
Tablesaw.config = {};
4228
}
29+
if( Tablesaw.mustard ) {
30+
jQuery( document.documentElement ).addClass( 'tablesaw-enhanced' );
31+
}
4332

4433
;(function( $ ) {
4534
var pluginName = "table",
@@ -102,7 +91,7 @@ if( !Tablesaw.config ) {
10291
}
10392

10493
// Store "cells" data on header as a reference to all cells in the same column as this TH
105-
this.cells = self.$table.find("tr").not( $( thrs ).eq( 0 ) ).not( this ).children( sel );
94+
this.cells = self.$table.find("tr").not( thrs[0] ).not( this ).children( sel );
10695
coltally++;
10796
});
10897
});
@@ -165,7 +154,10 @@ if( !Tablesaw.config ) {
165154
};
166155

167156
$( document ).on( "enhance.tablesaw", function( e ) {
168-
$( e.target ).find( initSelector )[ pluginName ]();
157+
// Cut the mustard
158+
if( Tablesaw.mustard ) {
159+
$( e.target ).find( initSelector )[ pluginName ]();
160+
}
169161
});
170162

171163
}( jQuery ));

dist/stackonly/tablesaw.stackonly.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*! Tablesaw - v1.0.5 - 2015-10-09
1+
/*! Tablesaw - v2.0.0 - 2015-10-09
22
* https://github.com/filamentgroup/tablesaw
33
* Copyright (c) 2015 Filament Group; Licensed MIT */
4-
/*! Tablesaw - v1.0.5 - 2015-10-09
4+
/*! Tablesaw - v2.0.0 - 2015-10-09
55
* https://github.com/filamentgroup/tablesaw
66
* Copyright (c) 2015 Filament Group; Licensed MIT */
77

dist/tablesaw-init.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*! Tablesaw - v2.0.0 - 2015-10-09
2+
* https://github.com/filamentgroup/tablesaw
3+
* Copyright (c) 2015 Filament Group; Licensed MIT */
4+
;(function( $ ) {
5+
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+
$( function(){
9+
$( document ).trigger( "enhance.tablesaw" );
10+
});
11+
12+
})( jQuery );

dist/tablesaw.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Tablesaw - v1.0.5 - 2015-10-09
1+
/*! Tablesaw - v2.0.0 - 2015-10-09
22
* https://github.com/filamentgroup/tablesaw
33
* Copyright (c) 2015 Filament Group; Licensed MIT */
44

dist/tablesaw.js

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
1-
/*! Tablesaw - v1.0.5 - 2015-10-09
1+
/*! Tablesaw - v2.0.0 - 2015-10-09
22
* https://github.com/filamentgroup/tablesaw
33
* Copyright (c) 2015 Filament Group; Licensed MIT */
4-
;(function( $ ) {
5-
6-
// Cut the mustard
7-
if( !( 'querySelector' in document ) ||
8-
( window.blackberry && !window.WebKitPoint ) ||
9-
window.operamini ) {
10-
return;
11-
} else {
12-
$( document.documentElement ).addClass( 'tablesaw-enhanced' );
13-
14-
// DOM-ready auto-init of plugins.
15-
// Many plugins bind to an "enhance" event to init themselves on dom ready, or when new markup is inserted into the DOM
16-
$( function(){
17-
$( document ).trigger( "enhance.tablesaw" );
18-
});
19-
}
20-
21-
})( jQuery );
224
/*
235
* tablesaw: A set of plugins for responsive tables
246
* Stack and Column Toggle tables
@@ -34,12 +16,19 @@ if( typeof Tablesaw === "undefined" ) {
3416
columnBtnText: 'Columns',
3517
columnsDialogError: 'No eligible columns.',
3618
sort: 'Sort'
37-
}
19+
},
20+
// cut the mustard
21+
mustard: 'querySelector' in document &&
22+
( !window.blackberry || window.WebKitPoint ) &&
23+
!window.operamini
3824
};
3925
}
4026
if( !Tablesaw.config ) {
4127
Tablesaw.config = {};
4228
}
29+
if( Tablesaw.mustard ) {
30+
jQuery( document.documentElement ).addClass( 'tablesaw-enhanced' );
31+
}
4332

4433
;(function( $ ) {
4534
var pluginName = "table",
@@ -102,7 +91,7 @@ if( !Tablesaw.config ) {
10291
}
10392

10493
// Store "cells" data on header as a reference to all cells in the same column as this TH
105-
this.cells = self.$table.find("tr").not( $( thrs ).eq( 0 ) ).not( this ).children( sel );
94+
this.cells = self.$table.find("tr").not( thrs[0] ).not( this ).children( sel );
10695
coltally++;
10796
});
10897
});
@@ -165,7 +154,10 @@ if( !Tablesaw.config ) {
165154
};
166155

167156
$( document ).on( "enhance.tablesaw", function( e ) {
168-
$( e.target ).find( initSelector )[ pluginName ]();
157+
// Cut the mustard
158+
if( Tablesaw.mustard ) {
159+
$( e.target ).find( initSelector )[ pluginName ]();
160+
}
169161
});
170162

171163
}( jQuery ));
@@ -269,7 +261,6 @@ if( !Tablesaw.config ) {
269261
}( this, jQuery ));
270262
;(function( $ ) {
271263
var pluginName = "tablesawbtn",
272-
initSelector = ".btn",
273264
methods = {
274265
_create: function(){
275266
return $( this ).each(function() {
@@ -345,10 +336,6 @@ if( !Tablesaw.config ) {
345336
// add methods
346337
$.extend( $.fn[ pluginName ].prototype, methods );
347338

348-
$( document ).on( "enhance", function( e ) {
349-
$( initSelector, e.target )[ pluginName ]();
350-
});
351-
352339
}( jQuery ));
353340
;(function( win, $, undefined ){
354341

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "tablesaw",
33
"title": "Tablesaw",
44
"description": "A set of plugins for responsive tables.",
5-
"version": "1.0.5",
5+
"version": "2.0.0",
66
"homepage": "https://github.com/filamentgroup/tablesaw",
77
"author": {
88
"name": "Zach Leatherman",

0 commit comments

Comments
 (0)