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