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

Commit

Permalink
2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmynotjim committed Nov 13, 2014
1 parent da41203 commit 42497d5
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![build status](https://secure.travis-ci.org/jimmynotjim/scrollNav.png?branch=v2.3.1)](http://travis-ci.org/jimmynotjim/scrollNav.js)
[![build status](https://secure.travis-ci.org/jimmynotjim/scrollNav.png?branch=v2.4.0)](http://travis-ci.org/jimmynotjim/scrollNav.js)

# [jQuery scrollNav][1]

Expand Down Expand Up @@ -247,7 +247,7 @@ scrollNav is Copyright © 2012-2013 James Wilson, released under the [MIT li

## Version

Latest stable version is v2.3.1. Make sure to view [the changelog][15] before updating, v2 is a complete re-write of the plugin.
Latest stable version is v2.4.0. Make sure to view [the changelog][15] before updating, v2 is a complete re-write of the plugin.

## Testing

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": "scrollNav",
"version": "2.3.1",
"version": "2.4.0",
"author": {
"name": "James Wilson",
"email": "[email protected]",
Expand Down
12 changes: 10 additions & 2 deletions dist/jquery.scrollNav.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! scrollNav - v2.3.1 - 2014-10-30
/*! scrollNav - v2.4.0 - 2014-11-13
* http://scrollnav.com
* Copyright (c) 2014 James Wilson; Licensed MIT */
(function($) {
Expand Down Expand Up @@ -42,7 +42,8 @@
arrowKeys: false,
onInit: null,
onRender: null,
onDestroy: null
onDestroy: null,
onResetPos: null
},
_set_body_class: function(state) {
// Set and swap our loading hooks to the body
Expand Down Expand Up @@ -382,6 +383,13 @@
S.settings = [];
S.sections = undefined;
});
},
resetPos: function() {
S._setup_pos();
S._check_pos();

// Fire custom reset position callback
if (S.settings.onResetPos) { S.settings.onResetPos.call(this); }
}
};

Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.scrollNav.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": "scrollNav",
"version": "2.3.1",
"version": "2.4.0",
"title": "scrollNav",
"author": {
"name": "James Wilson",
Expand Down
2 changes: 1 addition & 1 deletion scrollNav.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrollNav",
"version": "2.3.1",
"version": "2.4.0",
"title": "scrollNav",
"description": "A jQuery plugin for building a scrolling side navigation menu",
"homepage": "http://scrollnav.com",
Expand Down

0 comments on commit 42497d5

Please sign in to comment.