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

@@ -52,7 +52,7 @@ module.exports = function(responseText, request, href, options) {
this.state.options = options
try {
this.loadContent(responseText, this.options)
this.loadContent(responseText, options)
}
catch (e) {
trigger(document, "pjax:error", options)