Changeset 226 for trunk/common

Show
Ignore:
Timestamp:
09/18/07 18:20:57 (2 years ago)
Author:
janine
Message:

Put this line in a try/catch, because for some reason Opera doesn't like it (though the ad still loads even though Opera throws an error).

http://rt.livejournal.org/Ticket/Display.html?id=4335

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/AdEngine.js

    r211 r226  
    5353         
    5454            /* replace new, old */ 
    55             es[ i ].parentNode.replaceChild( cl, es[ i ] ); 
     55            try { 
     56                es[ i ].parentNode.replaceChild( cl, es[ i ] ); 
     57            } catch (e) {} 
    5658        } 
    5759    },