* Returns the iframes window object. * * @method getWin * @return {Window} Iframe DOM window object.
()
| 1015 | * @return {Window} Iframe DOM window object. |
| 1016 | */ |
| 1017 | public getWin(): Window { |
| 1018 | const self = this; |
| 1019 | |
| 1020 | if (!self.contentWindow) { |
| 1021 | const elm = self.iframeElement; |
| 1022 | |
| 1023 | if (elm) { |
| 1024 | self.contentWindow = elm.contentWindow as Window; |
| 1025 | } |
| 1026 | } |
| 1027 | |
| 1028 | return self.contentWindow; |
| 1029 | } |
| 1030 | |
| 1031 | /** |
| 1032 | * Returns the iframes document object. |
no outgoing calls
no test coverage detected