diff --git a/.jshintrc b/.jshintrc index 2c40c44..8c86fc7 100644 --- a/.jshintrc +++ b/.jshintrc @@ -10,6 +10,5 @@ "unused": true, "boss": true, "eqnull": true, - "node": true, - "es5": true + "node": true } diff --git a/.travis.yml b/.travis.yml index fc91963..1cb90c2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - 0.8 + - 0.10 before_script: - npm install -g grunt-cli - npm install semver diff --git a/CHANGELOG.md b/CHANGELOG.md index 624e8ea..2e08902 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,11 @@ And constructed with these guidelines: For more information on semantic versioning, please visit http://semver.org/. +## v2.3.0 - October 9, 2014 + +* Updated min Node to 0.10.* +* Updated all Node plugins to latest + ## v2.2.0 - March 14, 2014 * Added option to change the classname used throughout the plugin. diff --git a/README.md b/README.md index 2d03176..ba524c6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![build status](https://secure.travis-ci.org/jimmynotjim/scrollNav.png?branch=v2.2.0)](http://travis-ci.org/jimmynotjim/scrollNav.js) +[![build status](https://secure.travis-ci.org/jimmynotjim/scrollNav.png?branch=v2.3.0)](http://travis-ci.org/jimmynotjim/scrollNav.js) # [jQuery scrollNav][1] @@ -213,7 +213,7 @@ scrollNav is Copyright © 2012-2013 James Wilson, released under the [MIT li ## Version -Latest stable version is v2.2.0. Make sure to view [the changelog][15] before updating, v2 is a complete re-write of the plugin. +Latest stable version is v2.3.0. Make sure to view [the changelog][15] before updating, v2 is a complete re-write of the plugin. ## Testing diff --git a/bower.json b/bower.json index da7db7c..bcb144b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "scrollNav", - "version": "2.2.0", + "version": "2.3.0", "author": { "name": "James Wilson", "email": "jimmynotjim@me.com", diff --git a/dist/jquery.scrollNav.js b/dist/jquery.scrollNav.js index b54482c..9bb2022 100644 --- a/dist/jquery.scrollNav.js +++ b/dist/jquery.scrollNav.js @@ -1,4 +1,4 @@ -/*! scrollNav - v2.2.0 - 2014-03-14 +/*! scrollNav - v2.3.0 - 2014-10-09 * http://scrollnav.com * Copyright (c) 2014 James Wilson; Licensed MIT */ (function($) { diff --git a/dist/jquery.scrollNav.min.js b/dist/jquery.scrollNav.min.js index 2dc42cf..8cde05f 100644 --- a/dist/jquery.scrollNav.min.js +++ b/dist/jquery.scrollNav.min.js @@ -1,4 +1,4 @@ -/*! scrollNav - v2.2.0 - 2014-03-14 +/*! scrollNav - v2.3.0 - 2014-10-09 * http://scrollnav.com * Copyright (c) 2014 James Wilson; Licensed MIT */ -(function(s){var t=function(t,e,i,n){if(s(t).length>0){var a=s(t).offset().top;e=n?e:0,s("html:not(:animated),body:not(:animated)").animate({scrollTop:a-i},e)}},e=function(){return window.location.hash},i={classes:{loading:"sn-loading",failed:"sn-failed",success:"sn-active"},defaults:{sections:"h2",subSections:!1,sectionElem:"section",className:"scroll-nav",showHeadline:!0,headlineText:"Scroll To",showTopLink:!0,topLinkText:"Top",fixedMargin:40,scrollOffset:40,animated:!0,speed:500,insertLocation:"insertBefore",arrowKeys:!1,onInit:null,onRender:null,onDestroy:null},_set_body_class:function(t){var e=s("body");"loading"===t?e.addClass(i.classes.loading):"success"===t?e.removeClass(i.classes.loading).addClass(i.classes.success):e.removeClass(i.classes.loading).addClass(i.classes.failed)},_find_sections:function(t){var e=i.settings.sections,n=[];if(i.settings.showTopLink){var a=t.children().first();a.is(e)||n.push(a.nextUntil(e).andSelf())}t.find(e).each(function(){n.push(s(this).nextUntil(e).andSelf())}),i.sections={raw:n}},_setup_sections:function(t){var e=[];s(t).each(function(t){var n=[],a=s(this),o="scrollNav-"+(t+1),l=function(){return 0===t},c=function(){return!a.eq(0).is(i.settings.sections)},r=i.settings.showTopLink&&l()&&c()?i.settings.topLinkText:a.filter(i.settings.sections).text();if(a.wrapAll("<"+i.settings.sectionElem+' id="'+o+'" class="'+i.settings.className+'__section" />'),i.settings.subSections){var d=a.filter(i.settings.subSections);d.length>0&&d.each(function(t){var e=o+"-"+(t+1),l=s(this).text(),c=a.filter(s(this).nextUntil(d).andSelf());c.wrapAll('
'),n.push({id:e,text:l})})}e.push({id:o,text:r,sub_sections:n})}),i.sections.data=e},_tear_down_sections:function(t){s(t).each(function(){var t=this.sub_sections;s("#"+this.id).children().unwrap(),t.length>0&&s(t).each(function(){s("#"+this.id).children().unwrap()})})},_setup_nav:function(t){var e=s("",{"class":i.settings.className+"__heading",text:i.settings.headlineText}),n=s("
",{"class":i.settings.className+"__wrapper"}),a=s("