jQuery v1.8.3 issue? (3 posts)

  1. Richard Vencu
    Posted 2 years ago #

    I got some issues for jQuery code not getting executed after upgrading to WP3.5

    Finally I reduced my issue to a simple test, I wrote this:

    alert (Thesaurus.options.containers + '|' + $.find(Thesaurus.options.containers).length + '|' + $.find('#content').length);

    And I get this:


    Is this a jQuery issue? Actually another test out of my plugin context is performing well

    var test = "div.post_content";
    alert (test + '|' + jQuery.find(test).length + '|' + jQuery.find('div.post_content').length);
  2. Richard Vencu
    Posted 2 years ago #

    And there is no error in javascript console whatsoever...

  3. Barry Hughes
    Posted 2 years ago #

    If I use this definition:

    Thesaurus = { options: { containers: "#pagebody" } }

    And change your line of code to:

    alert (Thesaurus.options.containers + '|' + $.find(Thesaurus.options.containers).length + '|' + $.find('#pagebody').length);

    So substituting #pagebody for #content, so I can test it out right here in the forum, then I get this result (expected):


Topic Closed

This topic has been closed to new replies.

About this Topic