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

Commit

Permalink
Tablesaw 2.0.0: Hemlock
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Oct 9, 2015
1 parent 829c0c6 commit a710a67
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 55 deletions.
2 changes: 1 addition & 1 deletion dist/bare/tablesaw.bare.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Tablesaw - v1.0.5 - 2015-10-09
/*! Tablesaw - v2.0.0 - 2015-10-09
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2015 Filament Group; Licensed MIT */

Expand Down
2 changes: 1 addition & 1 deletion dist/stackonly/tablesaw.stackonly.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Tablesaw - v1.0.5 - 2015-10-09
/*! Tablesaw - v2.0.0 - 2015-10-09
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2015 Filament Group; Licensed MIT */

Expand Down
36 changes: 14 additions & 22 deletions dist/stackonly/tablesaw.stackonly.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
/*! Tablesaw - v1.0.5 - 2015-10-09
/*! Tablesaw - v2.0.0 - 2015-10-09
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2015 Filament Group; Licensed MIT */
;(function( $ ) {

// Cut the mustard
if( !( 'querySelector' in document ) ||
( window.blackberry && !window.WebKitPoint ) ||
window.operamini ) {
return;
} else {
$( document.documentElement ).addClass( 'tablesaw-enhanced' );

// 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
$( function(){
$( document ).trigger( "enhance.tablesaw" );
});
}

})( jQuery );
/*
* tablesaw: A set of plugins for responsive tables
* Stack and Column Toggle tables
Expand All @@ -34,12 +16,19 @@ if( typeof Tablesaw === "undefined" ) {
columnBtnText: 'Columns',
columnsDialogError: 'No eligible columns.',
sort: 'Sort'
}
},
// cut the mustard
mustard: 'querySelector' in document &&
( !window.blackberry || window.WebKitPoint ) &&
!window.operamini
};
}
if( !Tablesaw.config ) {
Tablesaw.config = {};
}
if( Tablesaw.mustard ) {
jQuery( document.documentElement ).addClass( 'tablesaw-enhanced' );
}

;(function( $ ) {
var pluginName = "table",
Expand Down Expand Up @@ -102,7 +91,7 @@ if( !Tablesaw.config ) {
}

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

$( document ).on( "enhance.tablesaw", function( e ) {
$( e.target ).find( initSelector )[ pluginName ]();
// Cut the mustard
if( Tablesaw.mustard ) {
$( e.target ).find( initSelector )[ pluginName ]();
}
});

}( jQuery ));
Expand Down
4 changes: 2 additions & 2 deletions dist/stackonly/tablesaw.stackonly.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*! Tablesaw - v1.0.5 - 2015-10-09
/*! Tablesaw - v2.0.0 - 2015-10-09
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2015 Filament Group; Licensed MIT */
/*! Tablesaw - v1.0.5 - 2015-10-09
/*! Tablesaw - v2.0.0 - 2015-10-09
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2015 Filament Group; Licensed MIT */

Expand Down
12 changes: 12 additions & 0 deletions dist/tablesaw-init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*! Tablesaw - v2.0.0 - 2015-10-09
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2015 Filament Group; Licensed MIT */
;(function( $ ) {

// 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
$( function(){
$( document ).trigger( "enhance.tablesaw" );
});

})( jQuery );
2 changes: 1 addition & 1 deletion dist/tablesaw.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Tablesaw - v1.0.5 - 2015-10-09
/*! Tablesaw - v2.0.0 - 2015-10-09
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2015 Filament Group; Licensed MIT */

Expand Down
41 changes: 14 additions & 27 deletions dist/tablesaw.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
/*! Tablesaw - v1.0.5 - 2015-10-09
/*! Tablesaw - v2.0.0 - 2015-10-09
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2015 Filament Group; Licensed MIT */
;(function( $ ) {

// Cut the mustard
if( !( 'querySelector' in document ) ||
( window.blackberry && !window.WebKitPoint ) ||
window.operamini ) {
return;
} else {
$( document.documentElement ).addClass( 'tablesaw-enhanced' );

// 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
$( function(){
$( document ).trigger( "enhance.tablesaw" );
});
}

})( jQuery );
/*
* tablesaw: A set of plugins for responsive tables
* Stack and Column Toggle tables
Expand All @@ -34,12 +16,19 @@ if( typeof Tablesaw === "undefined" ) {
columnBtnText: 'Columns',
columnsDialogError: 'No eligible columns.',
sort: 'Sort'
}
},
// cut the mustard
mustard: 'querySelector' in document &&
( !window.blackberry || window.WebKitPoint ) &&
!window.operamini
};
}
if( !Tablesaw.config ) {
Tablesaw.config = {};
}
if( Tablesaw.mustard ) {
jQuery( document.documentElement ).addClass( 'tablesaw-enhanced' );
}

;(function( $ ) {
var pluginName = "table",
Expand Down Expand Up @@ -102,7 +91,7 @@ if( !Tablesaw.config ) {
}

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

$( document ).on( "enhance.tablesaw", function( e ) {
$( e.target ).find( initSelector )[ pluginName ]();
// Cut the mustard
if( Tablesaw.mustard ) {
$( e.target ).find( initSelector )[ pluginName ]();
}
});

}( jQuery ));
Expand Down Expand Up @@ -269,7 +261,6 @@ if( !Tablesaw.config ) {
}( this, jQuery ));
;(function( $ ) {
var pluginName = "tablesawbtn",
initSelector = ".btn",
methods = {
_create: function(){
return $( this ).each(function() {
Expand Down Expand Up @@ -345,10 +336,6 @@ if( !Tablesaw.config ) {
// add methods
$.extend( $.fn[ pluginName ].prototype, methods );

$( document ).on( "enhance", function( e ) {
$( initSelector, e.target )[ pluginName ]();
});

}( jQuery ));
;(function( win, $, undefined ){

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "tablesaw",
"title": "Tablesaw",
"description": "A set of plugins for responsive tables.",
"version": "1.0.5",
"version": "2.0.0",
"homepage": "https://github.com/filamentgroup/tablesaw",
"author": {
"name": "Zach Leatherman",
Expand Down

0 comments on commit a710a67

Please sign in to comment.