twitter/bootstrap — Issue #401: lack of semi-colons breaks bootstrap js files when tethering
Author: cam-intel
Created: 2011-10-10 08:49:00+00:00
State: open

When using bootstrap across a tethered connection at least one js file stops working.

The reason is that many providers (o2, t-mobile, vodafone) across the world embed another js script into web pages. The script is called bmi.js.

This file helps compress many separate js requests into the main page.

The lack of semi-colons in the dropdown js file causes this compression to break, and the dropdown menus stop working on any device if the device is tethered.

The fix is simple: just use semi-colons. The line that breaks is

clearMenus()
!isActive && ...