Fix bugs and add tests #145

Merged
BehindTheMath merged 11 commits from fix/bugs-and-add-tests into master 2018-04-09 22:36:33 -05:00

11 Commits

Author SHA1 Message Date
Behind The Math
a42ae57448 Code cleanup 2018-04-09 23:31:05 -04:00
Behind The Math
4c0b6d6251 Add TS definitions for options.requestOptions 2018-04-09 23:31:04 -04:00
Behind The Math
b3f7fcefee Bug fixes and tests for switches 2018-04-09 23:31:04 -04:00
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
Behind The Math
cd7be77d99 Refactor attach-link and attach-form 2018-04-09 23:31:03 -04:00
Behind The Math
31a6f44c97 Ignore lines from coverage if they can't be tested 2018-04-09 23:31:03 -04:00
Behind The Math
dddb4dd2fb Fix documentation for currentUrlFullReload 2018-04-09 23:31:02 -04:00
Behind The Math
494f1f35ac Bug fixes 2018-04-09 23:31:02 -04:00
Behind The Math
ee82d0e0c7 Fix bug when checking if elements were parsed already
parse-element.js checks if the element was already parsed by
checking for the `data-pjax-click-state` attribute. However, this
attribute was not added until the link is clicked.

Originally, there was a separate attribute, `data-pjax-enabled`,
which tracked if the element was parsed already, but that was
changed in 9a86044.

This commit merges the attributes for mouse clicks and key presses
into one and adds that attribute when the element is initially
parsed.
2018-04-09 23:31:02 -04:00
Robin North
688810fbae Add tests for lib/util/noop.js 2018-04-09 23:30:57 -04:00