How to use the post-robot/src.ProxyWindow.toProxyWindow function in post-robot

To help you get started, we’ve selected a few post-robot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github krakenjs / zoid / dist / module / component / parent / drivers.js View on Github external
})['finally'](function () {
                    return _this.destroy();
                });
            };

            var iframeWatcher = watchElementForClose(frame, detectClose);
            var elementWatcher = watchElementForClose(_this.element, detectClose);

            _this.clean.register('destroyWindow', function () {
                iframeWatcher.cancel();
                elementWatcher.cancel();
                cleanUpWindow(win);
                destroyElement(frame);
            });

            return ProxyWindow.toProxyWindow(win);
        });
    },
github krakenjs / zoid / dist / module / component / parent / drivers.js View on Github external
width = _component$dimensions.width,
                    height = _component$dimensions.height;


                width = normalizeDimension(width, window.outerWidth);
                height = normalizeDimension(height, window.outerWidth);

                var attributes = _this4.component.attributes.popup || {};
                var win = popup('', _extends({ width: width, height: height }, attributes));

                _this4.clean.register('destroyWindow', function () {
                    win.close();
                    cleanUpWindow(win);
                });

                return ProxyWindow.toProxyWindow(win);
            });
        },