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

Fixes #167
This commit is contained in:
Behind The Math
2018-07-22 18:40:33 -04:00
parent c36225a24c
commit c74b3df773
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) {