Changeset 536


Ignore:
Timestamp:
07/22/06 15:16:26 (8 years ago)
Author:
mokhet
Message:

update free(). Dont do anything when the property is innerHTML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r535 r536  
    67306730    try 
    67316731    { 
    6732       // if the property is innerHTML, null can't be used because it is interpreted as null.toString() 
    6733       // we need to blank it instead 
    6734       if ( P == 'innerHTML' ) 
    6735       { 
    6736         O[P] = ''; 
    6737       } 
    6738       else 
     6732      // if it is the innerHTML property, just do nothing 
     6733      if ( P !== 'innerHTML' ) 
    67396734      { 
    67406735        // need to unhide TD cells before delete them or they will leak in IE 
    6741         if ( P && O[P] && O[P].tagName && O[P].tagName.toLowerCase() == 'td' ) 
     6736        if ( O[P] && O[P].tagName && O[P].tagName.toLowerCase() == 'td' ) 
    67426737        { 
    67436738          O[P].style.display = ''; 
Note: See TracChangeset for help on using the changeset viewer.