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:
1
index.js
1
index.js
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user