vwall/compass-twitter-bootstrap — Issue #21: Jqeury method 'on' not found when loading bootstrap-alerts.js
Author: lucisferre
Created: 2012-02-04 22:57:07+00:00
State: open

This may just be some issue with bootstrap, but I have this in my application.js:

```
//= require jquery_ujs
//= require_tree .
//= require bootstrap-alert
//= require bootstrap-button
//= require bootstrap-tab
//= require bootstrap-tooltip
//= require bootstrap-transition
//= require bootstrap-dropdown
//= require bootstrap-modal
//= require bootstrap-popover
```

However on page load I get a method messing error from bootstrap-alert

TypeError: Object [object Object] has no method 'on'

which occurs at this line in bootstrap-alert.js

```javascript
$(function () {
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
})
```