A question about executeScripts #208
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
c26c223a65/index.js (L208-L213)c26c223a65/lib/execute-scripts.js (L10-L17)After
script.parentNode.removeChild(script);is executed,script.parentNodewill benullc26c223a65/lib/eval-script.js (L4-L5)This means that the return value of the short-circuit evaluation here is
document.querySelector("head")In other words, all the scripts that are refreshed by pjax will be placed in the
<head>. Is this expected behavior?