MCPcopy Create free account
hub / github.com/ReactJSResources/react-webpack-babel / initIframe

Function initIframe

public/bundle.js:6667–6690  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6665 }
6666
6667 function initIframe () {
6668 if (self.iframe) {
6669 try {
6670 self.form.removeChild(self.iframe);
6671 } catch (e) {
6672 self.onError('jsonp polling iframe removal error', e);
6673 }
6674 }
6675
6676 try {
6677 // ie6 dynamic iframes with target="" support (thanks Chris Lambacher)
6678 var html = '<iframe src="javascript:0" name="'+ self.iframeId +'">';
6679 iframe = document.createElement(html);
6680 } catch (e) {
6681 iframe = document.createElement('iframe');
6682 iframe.name = self.iframeId;
6683 iframe.src = 'javascript:0';
6684 }
6685
6686 iframe.id = self.iframeId;
6687
6688 self.form.appendChild(iframe);
6689 self.iframe = iframe;
6690 }
6691
6692 initIframe();
6693

Callers 2

completeFunction · 0.85
bundle.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected