]> source.dussan.org Git - jquery.git/commitdiff
Added a check to make sure that .style exists before trying to access it (Bug #2105).
authorJohn Resig <jeresig@gmail.com>
Mon, 14 Jan 2008 19:17:35 +0000 (19:17 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 14 Jan 2008 19:17:35 +0000 (19:17 +0000)
src/core.js

index 4a4ff95d48f409bd10ac1c599fe357c3863eb464..bba9883f589a429245455beb03dcb2d1a4404648 100644 (file)
@@ -836,7 +836,7 @@ jQuery.extend({
                if ( name.match( /float/i ) )\r
                        name = styleFloat;\r
 \r
-               if ( !force && elem.style[ name ] )\r
+               if ( !force && elem.style && elem.style[ name ] )\r
                        ret = elem.style[ name ];\r
 \r
                else if ( document.defaultView && document.defaultView.getComputedStyle ) {\r