Polyfill XHR.responseURL so tests pass in old Safari #73
Reference in New Issue
Block a user
Delete Branch "add-cachebust-option"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This property is only used in the tests. It doesn't exist in Safari 8 and before, so where it's not available this patch polyfills it, allowing the test to continue.
The pjax functionality was fine, by the way -- it was just the test which failed. The test wanted to check what URL was actually requested by the XHR, but Safari <=8 doesn't have the
xhr.responseURLproperty. That's not used in the application code, just the tests.I'll clarify as well that this polyfill is only loaded during testing, not as part of the pjax library.
I just cut 0.2.4