diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jquery/src/css/var/getStyles.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jquery/src/css/var/getStyles.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/getStyles.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/var/getStyles.js new file mode 100644 index 00000000..02a4b819 --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/jquery/src/css/var/getStyles.js @@ -0,0 +1,15 @@ +define( function() { + return function( elem ) { + + // Support: IE<=11+, 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 ); + }; +} ); |