Commit Graph

6 Commits

Author SHA1 Message Date
Behind The Math
39a96e51e7 Add tests 2018-04-09 23:31:04 -04:00
Behind The Math
f3dd755a97 Fix and refactors tests 2018-04-09 23:31:03 -04:00
Robin North
688810fbae Add tests for lib/util/noop.js 2018-04-09 23:30:57 -04:00
Robin North
05fa833169 loadUrl enhancements (#134)
`loadUrl` enhancements

- Make `options` parameter optional
- Allow partial overriding of instance options when calling `loadUrl` directly
- Make `requestOptions` optional
- Document `loadUrl` usage and provide examples
2018-03-06 10:06:38 +00:00
Robin North
f98f2dd63b Add tests for update-query-string 2018-03-04 15:12:53 +00:00
Behind The Math
fa05e94f07 Only blur element if it's contained by one of the selectors
Previously, Pjax would blur (remove focus) from the active element
regardless of where it was on the page. This restricts that to
happen only if the active element is contained by one of the
elements represented by options.selectors, because only those are
affected by Pjax.

Fixes #4
2018-01-24 20:18:41 -05:00