twitter/bootstrap — Issue #528: jQuery no-conflict mode
Author: hasbridge
Created: 2011-11-02 19:30:27+00:00
State: open

Currently, the modules will not work with jQuery in no-conflict mode. The $ variable cannot be assumed to always be jQuery, as it may be prototype of another library.

Instead of beginning each module with:

!function( $ ){

}

Pass the jQuery object by name, then locally define the $ variable. This would mean that very little code would need to change, and each module could still reference the $ variable:

!function( jQuery ){
var $ = jQuery;