Closed BehindTheMath closed 6 years ago
Pjax.switches.sideBySide
to require("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 require
precludes 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.
Fixes #68 and reverts #74