using outerHtml or innerHtml does not throw this error. I'm using the latest Chrome browser.
When I try to implement the demo in the readme (sideBySide switch) I get an error.
```
Pjax switch fail: ReferenceError {stack: (...), message: "forEach is not defined"}
pjax.js:431
(anonymous function) pjax.js:431
request.onreadystatechange
```
This error only happens with using sideBySide switch
```
switches: {
".js-Pjax": Pjax.switches.sideBySide
}
```
using outerHtml or innerHtml does not throw this error. I'm using the latest Chrome browser.
Sorry for that bug, I'm working on a branch to test the entire library but right now I'm focused on something else.
I think I found the bug here.
Can you try adding var forEach = Array.prototype.forEach in the global scope & confirm me that this snippet fix this bug ?
Sorry for that bug, I'm working on a branch to test the entire library but right now I'm focused on something else.
I think I found the bug here.
Can you try adding `var forEach = Array.prototype.forEach` in the global scope & confirm me that this snippet fix this bug ?
that fixed the undefined error but now I'm getting:
Pjax switch fail: TypeError {stack: (...), message: "Cannot read property 'callbacks' of undefined"}
that fixed the undefined error but now I'm getting:
Pjax switch fail: TypeError {stack: (...), message: "Cannot read property 'callbacks' of undefined"}
I published that part without any serious tests :/
Here is how I'm using pjax v0.1.x https://github.com/MoOx/moox.github.io/blob/147ccd6ff5cf6768d0dd8b4131581203055e10ff/src/assets/_scripts/vanilla.js#L47-L84
This should help you to get necessary stuff.
For the styles, here is what I'm using https://github.com/MoOx/moox.github.io/blob/24e851a8f5d7c2fe7559c4d19642aa25c4394708/src/assets/_styles/partials/_animation.scss
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When I try to implement the demo in the readme (sideBySide switch) I get an error.
This error only happens with using sideBySide switch
using outerHtml or innerHtml does not throw this error. I'm using the latest Chrome browser.
Sorry for that bug, I'm working on a branch to test the entire library but right now I'm focused on something else.
I think I found the bug here.
Can you try adding
var forEach = Array.prototype.forEachin the global scope & confirm me that this snippet fix this bug ?that fixed the undefined error but now I'm getting:
Pjax switch fail: TypeError {stack: (...), message: "Cannot read property 'callbacks' of undefined"}
I published that part without any serious tests :/
Here is how I'm using pjax v0.1.x https://github.com/MoOx/moox.github.io/blob/147ccd6ff5cf6768d0dd8b4131581203055e10ff/src/assets/_scripts/vanilla.js#L47-L84
This should help you to get necessary stuff.
For the styles, here is what I'm using https://github.com/MoOx/moox.github.io/blob/24e851a8f5d7c2fe7559c4d19642aa25c4394708/src/assets/_styles/partials/_animation.scss
Fixes should be available in 0.1.4