Skip to content
Permalink
Browse files

Added a check to make sure that .style exists before trying to access…

… it (Bug #2105).
  • Loading branch information
jeresig committed Jan 14, 2008
1 parent 047debc commit 6e739fd2ba917124dfbba5334eaa502e739490b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -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 ) {

0 comments on commit 6e739fd

Please sign in to comment.
You can’t perform that action at this time.