This repository has been archived by the owner on Mar 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Emre Koc
committed
Jun 9, 2017
1 parent
657e823
commit becf68a
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* navigate.js | ||
* Animated navigation on one-pagers using anchors. | ||
* | ||
* @version 1.0.4 | ||
* @version 1.0.5 | ||
* @author Emre Koc <[email protected]> | ||
*/ | ||
'use strict'; | ||
|
@@ -58,7 +58,7 @@ function init(opts) { | |
if (!item.id) { | ||
item.target = $body; | ||
} else { | ||
item.target = $(item.hash); | ||
item.target = $(item.hash + ', #' + options.prefix + item.id); | ||
if (!item.target.data('navigate')) { | ||
item.target.data('navigate', item); | ||
if (options.history) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters