diff --git a/dist/navigate.js b/dist/navigate.js index 84155c5..cc1ac9a 100644 --- a/dist/navigate.js +++ b/dist/navigate.js @@ -2,7 +2,7 @@ * navigate.js * Animated navigation on one-pagers using anchors. * -* @version 1.0.4 +* @version 1.0.5 * @author Emre Koc */ '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) { diff --git a/package.json b/package.json index b736017..e54cf72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "navigate.js", - "version": "1.0.4", + "version": "1.0.5", "description": "Animated navigation on one-pagers using anchors.", "main": "dist/navigate.js", "license": "MIT", diff --git a/src/navigate.js b/src/navigate.js index 4263e80..ba4a4ac 100644 --- a/src/navigate.js +++ b/src/navigate.js @@ -42,7 +42,7 @@ export 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) {