prevent scrollTo from being converted from false to 0
In the loadUrl function there is an explicit check for false as a means to disable the scrollTo behavior however if the scrollTo option is passed to the constructor as false the gaud statement was converting false to 0.
This commit is contained in:
1 parent
1d087e8b00
commit
ea7d1d2fce
1 file changed
+1
-1
@@ -26,7 +26,7 @@ var Pjax = function(options) {
|
|||||||
ga("send", "pageview", {page: options.url, title: options.title})
|
ga("send", "pageview", {page: options.url, title: options.title})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.options.scrollTo = this.options.scrollTo || 0
|
this.options.scrollTo = (typeof this.options.scrollTo === 'undefined') ? 0 : this.options.scrollTo;
|
||||||
this.options.debug = this.options.debug || false
|
this.options.debug = this.options.debug || false
|
||||||
|
|
||||||
this.maxUid = this.lastUid = newUid()
|
this.maxUid = this.lastUid = newUid()
|
||||||
|
|||||||
Reference in new issue
Block a user