Blame view

bower_components/jquery/src/css/var/getStyles.js 371 Bytes
a1a3bc73   Luigi Serra   graphs updates
1
  define( function() {
74249687   Luigi Serra   Cross browser con...
2
  	return function( elem ) {
a1a3bc73   Luigi Serra   graphs updates
3
  
74249687   Luigi Serra   Cross browser con...
4
5
6
  		// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
  		// IE throws on elements created in popups
  		// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
a1a3bc73   Luigi Serra   graphs updates
7
8
9
10
  		var view = elem.ownerDocument.defaultView;
  
  		if ( !view.opener ) {
  			view = window;
74249687   Luigi Serra   Cross browser con...
11
12
  		}
  
a1a3bc73   Luigi Serra   graphs updates
13
  		return view.getComputedStyle( elem );
74249687   Luigi Serra   Cross browser con...
14
  	};
a1a3bc73   Luigi Serra   graphs updates
15
  } );