mirror of
https://github.com/jquery/jquery.git
synced 2026-02-18 00:01:21 -05:00
Added a check to make sure that .style exists before trying to access it (Bug #2105).
This commit is contained in:
@@ -836,7 +836,7 @@ jQuery.extend({
|
||||
if ( name.match( /float/i ) )
|
||||
name = styleFloat;
|
||||
|
||||
if ( !force && elem.style[ name ] )
|
||||
if ( !force && elem.style && elem.style[ name ] )
|
||||
ret = elem.style[ name ];
|
||||
|
||||
else if ( document.defaultView && document.defaultView.getComputedStyle ) {
|
||||
|
||||
Reference in New Issue
Block a user