Skip to content

Commit

Permalink
Merge pull request #58 from alexfoxy/dev
Browse files Browse the repository at this point in the history
Fixed issue #52
  • Loading branch information
alexfoxy authored Sep 20, 2019
2 parents 30109c0 + 21f8ab2 commit 374a093
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/lax.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
}
}
});
el.setAttribute("data-lax-anchor", "self");
var currentAnchor = el.getAttribute("data-lax-anchor");
if (!currentAnchor || currentAnchor === "") el.setAttribute("data-lax-anchor", "self");
el.attributes.removeNamedItem(a.name);
};

Expand Down
Loading

0 comments on commit 374a093

Please sign in to comment.