Skip to content

Commit ca2f465

Browse files
committedJan 12, 2015
Fix support for IE9
1 parent fb0699a commit ca2f465

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎browser.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ function pquest(method, url, options, callback) {
9696
script.onload = script.onreadystatechange = function () {
9797
if (!this.readyState || this.readyState === "loaded" || this.readyState === "complete") {
9898
onComplete();
99+
setTimeout(function () {
100+
reject(new Error('JSONP callback should already have been called'));
101+
}, 100);
99102
}
100-
setTimeout(function () {
101-
reject(new Error('JSONP callback should already have been called'));
102-
}, 100);
103103
};
104104
script.onerror = function () {
105105
onComplete();

0 commit comments

Comments
 (0)
Please sign in to comment.