jQuery: The Write Less, Do More JavaScript Library

Changeset 4444

Show
Ignore:
Timestamp:
01/14/08 19:17:35 (7 months ago)
Author:
jeresig
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/core.js

    r4437 r4444  
    837837            name = styleFloat; 
    838838 
    839         if ( !force && elem.style[ name ] ) 
     839        if ( !force && elem.style && elem.style[ name ] ) 
    840840            ret = elem.style[ name ]; 
    841841