Commit Graph

5 Commits

Author SHA1 Message Date
Behind The Math
c13149626b Prettier fixes 2019-03-03 01:37:45 -05:00
BehindTheMath
2c6506af65 Fix evalScripts() (#186)
* Set the id of the inserted <script>.
* Check if the <script> still exists before trying to remove it.
2018-11-25 15:21:07 -05:00
BehindTheMath
d6bf21ed22 Fix bugs and add tests (#145)
* 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.

* More bug fixes

* Fix documentation for currentUrlFullReload

* Ignore lines from coverage if they can't be tested

* Refactor attach-link and attach-form

* Fix and refactors tests

* Add tests

* Add TS definitions for options.requestOptions

* Code cleanup
2018-04-09 23:36:32 -04:00
Robin North
31e1e7e405 Enable test for document.write in eval'd scripts 2018-01-26 15:54:07 +00:00
Maxime Thirouin
165532d43c Relocate all the things 2014-10-14 08:23:56 +02:00