Add default switches to Pjax.switches #92
Reference in New Issue
Block a user
Delete Branch "add-default-switches"
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?
Fixes #68 and reverts #74
#74 fixed #68 in one instance in the README, by changing
Pjax.switches.sideBySidetorequire("pjax/lib/switches.js").sideBySide.However, there are still 5 other places in the README where the old syntax is still used (
Pjax.switches.*).Additionally, using
requireprecludes users from using Pjax as a simple drop-in script tag, and requires the use of a bundler like Browserify, as mentioned here.This PR restores the original functionality by attaching the default switches as
Pjax.switches.*.I tried running the tests locally, but I ran into multiple issues.
JSCS wouldn't run with a wildcard path, no matter how I tried setting it. When I ran it with a loop on all files, it found style warnings, but nothing created by this commit.
Testling crashed immediately with no descriptive error message.
However, the Travis build passed.
Sorry this project is clearly not actively maintained.
JSCS should be remove (and replaced with prettier imo - I love the standard + "no config" approach).
I am also not surprised that there is some errors with tests...