Skip to content

Commit

Permalink
Removed reset setting, bumped to 1.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
flesler committed Sep 4, 2013
1 parent 910222c commit 533bbf1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion changes.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
1.2.9b
1.2.9
[Fix]
- hash:true incompatible with vertical offset
[Enhancement]
- $.localScroll.hash() is not needed anymore
- Setting "reset" removed

1.2.8
[Fix]
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery.localScroll",
"version": "1.2.8",
"version": "1.2.9",
"description": "This plugin will animate a regular anchor navigation. It will allow your visitors to navigate your site with a smooth scrolling effect.",
"homepage": "https://github.com/flesler/jquery.localScroll",
"main": [
Expand Down
7 changes: 3 additions & 4 deletions jquery.localScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Dual licensed under MIT and GPL.
* http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html
* @author Ariel Flesler
* @version 1.2.9b
* @version 1.2.9
*/
;(function( $ ){
var URI = location.href.replace(/#.*/,''); // local url without hash
Expand All @@ -21,8 +21,7 @@
axis:'y', // Which of top and left should be modified.
event:'click', // On which event to react.
stop:true, // Avoid queuing animations
target: window, // What to scroll (selector or element). The whole window by default.
reset: true // Used by $.localScroll.hash. If true, elements' scroll is resetted before actual scrolling
target: window // What to scroll (selector or element). The whole window by default.
/*
lock:false, // ignore events if already animating
lazy:false, // if true, links can be added later, and will still work.
Expand Down Expand Up @@ -82,7 +81,7 @@
if( settings.stop )
$target._scrollable().stop(true); // remove all its animations

if( settings.hash ){
if( settings.hash ) {
var offset = settings.offset;
offset = offset && offset.top || offset || 0;
var attr = elem.id == id ? 'id' : 'name',
Expand Down
4 changes: 2 additions & 2 deletions jquery.localScroll.min.js

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

0 comments on commit 533bbf1

Please sign in to comment.