Fixed: `this.reload` is now a Function

Closes #65
This commit is contained in:
Maxime Thirouin
2016-03-24 12:38:15 +01:00
parent a5d36d28f8
commit afe0ddb6b9
5 changed files with 15 additions and 4 deletions

View File

@@ -43,7 +43,10 @@ var linkAction = function(el, event) {
event.preventDefault()
// dont do "nothing" if user try to reload the page by clicking the same link twice
if (el.href === window.location.href.split("#")[0]) {
if (
this.options.currentUrlFullReload &&
el.href === window.location.href.split("#")[0]
) {
el.setAttribute(attrClick, "reload")
this.reload()
return