Skip to content

Commit

Permalink
Another simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
arvgta committed Nov 6, 2016
1 parent 55faa03 commit 47f5250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ajaxify.js
Expand Up @@ -832,7 +832,7 @@ pO("scrolly", 0, { scrolltop: "s" }, function (o) {
if(o === "+" || o === "!") o = currentURL; //fetch currentURL for "+" and "-" operators

if(op !== "+" && o.iO('#') && (o.iO('#') < o.length - 1)) { //if hash in URL and not standalone hash
var $el = $('#' + o.split('#')[1]); //extract part to the right of hash
var $el = $(o); //extract part to the right of hash
if (!$el.length) return; //nothing found -> return quickly
_wScrollTo($el); // ...animate to ID
return;
Expand Down

0 comments on commit 47f5250

Please sign in to comment.