WordPress.com Stats
[resolved] JavaScript error in Internet Explorer (2 posts)

  1. Ralph83
    Posted 5 years ago #

    Internet Explorer gives the following JavaScript error with this plugin activated: "'undefined' is empty or not an object" I think the problem is here:

    if ( typeof addLoadEvent != 'undefined' ) {addLoadEvent(load_cmc);}
    else {load_cmc();}

    I'm thinking of changing it into:

    if ( !addLoadEvent ) {addLoadEvent(load_cmc);}
    else {load_cmc();}

    Or perhaps:

    if ( typeof load_cmc != 'undefined' ) {addLoadEvent(load_cmc);}
    else {load_cmc();}

    What would be the best method to get rid of the error without affecting how the scripts works? Perhaps there's a better solution than the ones I suggested?


  2. Ralph83
    Posted 5 years ago #

    Changed topic status to resolved, as I just discovered the error is actually caused by another script. Sorry :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic