Plato on Github
Report Home
src/css/var/getStyles.js
Maintainability
77.61
Lines of code
17
Difficulty
7.65
Estimated Errors
0.05
Function weight
By Complexity
By SLOC
define( function() { "use strict"; return 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 ); }; } );