Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
})['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);
});
},
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);
});
},