Sunday, August 7, 2011

jQuery.noConflict(extreme) → jQuery

This is a more-extreme version of the simple <a href='Core/jQuery.noConflict'>noConflict</a> method, as this one will completely undo what jQuery has introduced. This is to be used in an extreme case where you'd like to embed jQuery into a high-conflict environment. '''NOTE:''' It's very likely that plugins won't work after this particular method has been called.

  • Boolean extreme : Set to true to enable the extreme rollback of jQuery and it's variables.

  • Example:
    Completely move jQuery to a new namespace in another object.
    var dom = {};
    dom.query = jQuery.noConflict(true);
    

  • No comments:

    Post a Comment