seyhunak/twitter-bootstrap-rails — Issue #77: Is the installed app/assets/javascripts/bootstrap.js.coffee necessary ?
Author: minaguib
Created: 2012-02-06 00:13:00+00:00
State: open

I think the installed app/assets/javascripts/bootstrap.js.coffee ends up mostly doing nothing if you follow bootstrap's documentation when setting up the widgets.

For example:

$ ->
$(".alert").alert()

Is roughly duplicate functionality of this chunk in /assets/twitter/bootstrap/bootstrap-alert.js:

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

and:

$ ->
$(".dropdown-toggle").dropdown()

is roughly duplicate functionality of this chunk in /assets/twitter/bootstrap/bootstrap-dropdown.js:

$(function () {
$('html').on('click.dropdown.data-api', clearMenus)
$('body').on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle)
})