defunkt/jquery-pjax — pull request #446 by rounce (2014-10-18 14:07:03+00:00)
Title: replace content after scripts have been loaded

reproduce
--- test.js ---
function test() {alert(test)}
---

--- content ---

---

--- result ---
Uncaught TypeError: undefined is not a function

checked in chrome and firefox.