Skip to content

Commit 43f8003

Browse files
committed
Scripts should be evaled async
1 parent 67ca193 commit 43f8003

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/evaled.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
window.evaledSrcScript = true
2+
window.evaledScriptLoaded()

test/unit/pjax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ if ($.support.pjax) {
121121
asyncTest("evals scripts", function() {
122122
var frame = this.frame
123123

124-
frame.$('#main').on('pjax:success', function() {
124+
frame.evaledScriptLoaded = function() {
125125
equal(true, frame.evaledSrcScript)
126126
equal(true, frame.evaledInlineScript)
127127
start()
128-
})
128+
}
129129
frame.$.pjax({
130130
url: "scripts.html",
131131
container: "#main"

0 commit comments

Comments
 (0)