()
| 1295 | } |
| 1296 | |
| 1297 | function initIframe() { |
| 1298 | if (self.iframe) { |
| 1299 | try { |
| 1300 | self.form.removeChild(self.iframe); |
| 1301 | } catch (e) { |
| 1302 | self.onError('jsonp polling iframe removal error', e); |
| 1303 | } |
| 1304 | } |
| 1305 | |
| 1306 | try { |
| 1307 | // ie6 dynamic iframes with target="" support (thanks Chris Lambacher) |
| 1308 | var html = '<iframe src="javascript:0" name="' + self.iframeId + '">'; |
| 1309 | iframe = document.createElement(html); |
| 1310 | } catch (e) { |
| 1311 | iframe = document.createElement('iframe'); |
| 1312 | iframe.name = self.iframeId; |
| 1313 | iframe.src = 'javascript:0'; |
| 1314 | } |
| 1315 | |
| 1316 | iframe.id = self.iframeId; |
| 1317 | |
| 1318 | self.form.appendChild(iframe); |
| 1319 | self.iframe = iframe; |
| 1320 | } |
| 1321 | |
| 1322 | initIframe(); |
| 1323 |
no outgoing calls
no test coverage detected