Commit 6e739fd2 authored by John Resig's avatar John Resig

Added a check to make sure that .style exists before trying to access it (Bug #2105).

parent 047debc7
......@@ -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 ) {
......
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