Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9f43ea

Browse files
committed
I discovered that IE7 and IE8 throw a javascript error on delete window[callbackId];
1 parent e4303a1 commit f9f43ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
110110
} else {
111111
completeOutstandingRequest(callback);
112112
}
113-
delete window[callbackId];
113+
window[callbackId] = null;//IE7 IE8 don't like delete window[callbackId];
114114
body[0].removeChild(script);
115115
});
116116
} else {

0 commit comments

Comments
 (0)