UNPKG

ng2-bootstrap

Version:
21 lines 782 B
import { window } from './facade/browser'; export var Utils = (function () { function Utils() { } Utils.reflow = function (element) { (function (bs) { return bs; })(element.offsetHeight); }; // source: https://github.com/jquery/jquery/blob/master/src/css/var/getStyles.js Utils.getStyles = function (elem) { // Support: IE <=11 only, Firefox <=30 (#15098, #14150) // IE throws on elements created in popups // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" var view = elem.ownerDocument.defaultView; if (!view || !view.opener) { view = window; } return view.getComputedStyle(elem); }; return Utils; }()); //# sourceMappingURL=utils.class.js.map