prevent scrollTo from being converted from false to 0 #33

Merged
igierard merged 3 commits from disableable-scrollTo into master 2015-01-16 00:56:25 -05:00
Showing only changes of commit ea7d1d2fce - Show all commits

View File

@@ -26,7 +26,7 @@ var Pjax = function(options) {
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.maxUid = this.lastUid = newUid()