Fixed: `this.reload` is now a Function

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

No files matched your search

+4 -1
View File
@@ -43,7 +43,10 @@ var linkAction = function(el, event) {
event.preventDefault()
// don’t 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