Skip to content

Commit

Permalink
Code cleanup and 1upped server
Browse files Browse the repository at this point in the history
  • Loading branch information
jellekralt committed Jan 27, 2015
1 parent 3454ba4 commit cea0e23
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Responsive-Tabs.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"ui",
"widget"
],
"version": "1.4.2",
"version": "1.4.3",
"author": {
"name": "Jelle Kralt",
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "responsive-tabs",
"version": "1.4.2",
"version": "1.4.3",
"main": "js/jquery.responsiveTabs.js",
"ignore": [
".jshintrc",
Expand Down
10 changes: 3 additions & 7 deletions js/jquery.responsiveTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Project: jquery.responsiveTabs.js
* Description: A plugin that creates responsive tabs, optimized for all devices
* Author: Jelle Kralt ([email protected])
* Version: 1.4.2
* Version: 1.4.3
* License: MIT
*/

Expand Down Expand Up @@ -222,16 +222,12 @@
// Check if hash has to be set in the URL location
if(_this.options.setHash) {
// Set the hash using the history api if available to tackle Chromes repaint bug on hash change
if(history.pushState) {

if(history.pushState) {
history.pushState(null, null, activatedTab.selector);

} else {

// Otherwise fallback to the hash update for sites that don't support the history api
window.location.hash = activatedTab.selector;

}
}
}

e.data.tab._ignoreHashChange = true;
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.responsiveTabs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "responsive-tabs",
"version": "1.4.2",
"version": "1.4.3",
"author": "Jelle Kralt <[email protected]>",
"description": "jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint.",
"contributors": [
Expand Down

0 comments on commit cea0e23

Please sign in to comment.