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

Commit

Permalink
2.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmynotjim committed Mar 19, 2018
1 parent 4ba7bb7 commit 6f5a593
Show file tree
Hide file tree
Showing 8 changed files with 2,267 additions and 14 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ And constructed with these guidelines:

For more information on semantic versioning, please visit http://semver.org/.

## v2.7.2 - March 18, 2018

* Fixed grunt:jshint error
* Fixed readme typo
* Replaced andSelf() calls with addBack()
* Updated semver version to fix vulnerability

## v2.7.1 - February 18, 2015

* Fixed package.json
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,11 @@ There are a few known issues, including poor location updating when scrolling on

## License

scrollNav is Copyright © 2012-2015 James Wilson, released under the [MIT license][6]. This means you can re-create, edit or share the plugin as long as you maintain the same open licensing.
scrollNav is Copyright © 2012-2018 James Wilson, released under the [MIT license][6]. This means you can re-create, edit or share the plugin as long as you maintain the same open licensing.

## Version

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

## Testing

Expand Down Expand Up @@ -293,6 +293,10 @@ Available Grunt tasks that will be useful in development.
* [Marc Amos (@marcamos)][23]
* [Felix Borzik (@Borzik)][24]
* [Masud Rahman (@frutiger)][25]
* [Rob Loach (@RobLoach)][26]
* [Will Moore (@willthemoor)][27]
* [Chris Garcia (@pixelbandito)][28]
* [Jim Schmid (@sheeep)][29]

[1]: http://scrollnav.com
[2]: #
Expand All @@ -319,3 +323,7 @@ Available Grunt tasks that will be useful in development.
[23]: http://github.com/marcamos
[24]: http://github.com/borzik
[25]: http://github.com/frutiger
[26]: http://github.com/RobLoach
[27]: http://github.com/willthemoor
[28]: http://github.com/pixelbandito
[29]: http://github.com/sheeep
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.7.1",
"version": "2.7.2",
"author": {
"name": "James Wilson",
"email": "jimmynotjim@me.com",
Expand Down
10 changes: 5 additions & 5 deletions dist/jquery.scrollNav.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! scrollNav - v2.7.1 - 2017-05-26
/*! scrollNav - v2.7.1 - 2018-03-18
* http://scrollnav.com
* Copyright (c) 2017 James Wilson; Licensed MIT */
* Copyright (c) 2018 James Wilson; Licensed MIT */
(function($) {

// Animate scrolling to section location
Expand Down Expand Up @@ -73,12 +73,12 @@
var $firstElem = $el.children().first();

if ( !$firstElem.is(target_elems) ) {
raw_html.push( $firstElem.nextUntil(target_elems).andSelf() );
raw_html.push( $firstElem.nextUntil(target_elems).addBack() );
}
}

$el.find(target_elems).each(function() {
raw_html.push( $(this).nextUntil(target_elems).andSelf() );
raw_html.push( $(this).nextUntil(target_elems).addBack() );
});

S.sections = {
Expand Down Expand Up @@ -107,7 +107,7 @@
$sub_sections.each(function(i) {
var sub_id = section_id + '-' + (i + 1);
var sub_text = $(this).text();
var $this_sub = $this_section.filter($(this).nextUntil($sub_sections).andSelf());
var $this_sub = $this_section.filter($(this).nextUntil($sub_sections).addBack());

$this_sub.wrapAll('<div id="' + sub_id + '" class="' + S.settings.className + '__sub-section" />');
sub_data.push( {id: sub_id, text: sub_text} );
Expand Down
6 changes: 3 additions & 3 deletions dist/jquery.scrollNav.min.js

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

Loading

0 comments on commit 6f5a593

Please sign in to comment.