twitter/bootstrap — Issue #1836: Combining javascript gives error (2.0.1-wip)
Author: kbond
Created: 2012-02-08 15:29:54+00:00
State: open

I have the following libraries in this order:

jquery-1.71.js
jquery-ui-1.8.16.js
..other various libraries (underscore/backbone etc)...
bootstrap-dropdown.js
bootstrap-collapse.js
bootstrap-tab.js
application.js

When they are all loaded separately, everything works as intended. When I combine them (not minimize), I get the following error:

Uncaught TypeError: undefined is not a function

It traces to the following:

/* TAB DATA-API
* ============ */

$(function () {
$('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
e.preventDefault()
$(this).tab('show')
})
})

}( window.jQuery ) // HERE!

Any ideas? I have tried both the ``v2.0.0`` tag as well as the latest ``2.0.1-wip`` branch