]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/ex-mode/node_modules/space-pen/node_modules/jquery/src/css/var/getStyles.js
413acd04a89734cb6aa976dddb907a7c0762cdc4
[rbdr/dotfiles] / atom / packages / ex-mode / node_modules / space-pen / node_modules / jquery / src / css / var / getStyles.js
1 define(function() {
2 return function( elem ) {
3 // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
4 // IE throws on elements created in popups
5 // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
6 if ( elem.ownerDocument.defaultView.opener ) {
7 return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
8 }
9
10 return window.getComputedStyle( elem, null );
11 };
12 });