Fix README. Also pass the current options object to loadContent() (#171)

Fixes #167
This commit was merged in pull request #171.
This commit is contained in:
BehindTheMath
2018-07-23 20:46:13 -04:00
committed by GitHub
parent c36225a24c
commit 03d64863c8
3 changed files with 6 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ var Pjax = function(options) {
var opt = clone(this.options)
opt.url = st.state.url
opt.title = st.state.title
// Since state already exists, prevent it from being pushed again
opt.history = false
opt.scrollPos = st.state.scrollPos
if (st.state.uid < this.lastUid) {