Blame view

bower_components/jquery/src/css/var/getStyles.js 410 Bytes
c5169e0e   Renato De Donato   a new hope
1
  define(function() {
74249687   Luigi Serra   Cross browser con...
2
  	return function( elem ) {
74249687   Luigi Serra   Cross browser con...
3
4
5
  		// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
  		// IE throws on elements created in popups
  		// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
c5169e0e   Renato De Donato   a new hope
6
7
  		if ( elem.ownerDocument.defaultView.opener ) {
  			return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
74249687   Luigi Serra   Cross browser con...
8
9
  		}
  
c5169e0e   Renato De Donato   a new hope
10
  		return window.getComputedStyle( elem, null );
74249687   Luigi Serra   Cross browser con...
11
  	};
c5169e0e   Renato De Donato   a new hope
12
  });