Commit 3722aef8 authored by Rick Waldron's avatar Rick Waldron

Use window.getComputedStyle to prevent breaking jsdom/node.js . Fixes #12235

parent 77412e03
......@@ -279,11 +279,11 @@ jQuery.extend({
});
// NOTE: To any future maintainer, we've used both window.getComputedStyle
// and getComputedStyle here to produce a better gzip size
// because jsdom on node.js will break without it.
if ( window.getComputedStyle ) {
curCSS = function( elem, name ) {
var ret, width, minWidth, maxWidth,
computed = getComputedStyle( elem, null ),
computed = window.getComputedStyle( elem, null ),
style = elem.style;
if ( computed ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment