aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-10-04 21:25:41 -0700
committerJacob Thornton <[email protected]>2011-10-04 21:25:41 -0700
commit607795e37a9cefd26ade772ceb8cb792602c6d8c (patch)
tree767e4e9c100290d73a56491cb12828b8f6c837ef /js
parentd7e3bf722d784b167b665e8bacb749f18ae0d0f4 (diff)
parent2edf16c034f6e145fe2da5e446f705cf112eae54 (diff)
downloadbootstrap-607795e37a9cefd26ade772ceb8cb792602c6d8c.tar.xz
bootstrap-607795e37a9cefd26ade772ceb8cb792602c6d8c.zip
Merge branch 'master' of github.com:twitter/bootstrap
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-dropdown.js27
1 files changed, 15 insertions, 12 deletions
diff --git a/js/bootstrap-dropdown.js b/js/bootstrap-dropdown.js
index a3b0b0dfa..68a3db5f2 100644
--- a/js/bootstrap-dropdown.js
+++ b/js/bootstrap-dropdown.js
@@ -20,17 +20,6 @@
!function( $ ){
- var d = 'a.menu, .dropdown-toggle'
-
- function clearMenus() {
- $(d).parent('li').removeClass('open')
- }
-
- $(function () {
- $('html').bind("click", clearMenus)
- $('body').dropdown( '[data-dropdown] a.menu, [data-dropdown] .dropdown-toggle' )
- })
-
/* DROPDOWN PLUGIN DEFINITION
* ========================== */
@@ -47,4 +36,18 @@
})
}
-}( window.jQuery || window.ender ); \ No newline at end of file
+ /* APPLY TO STANDARD DROPDOWN ELEMENTS
+ * =================================== */
+
+ var d = 'a.menu, .dropdown-toggle'
+
+ function clearMenus() {
+ $(d).parent('li').removeClass('open')
+ }
+
+ $(function () {
+ $('html').bind("click", clearMenus)
+ $('body').dropdown( '[data-dropdown] a.menu, [data-dropdown] .dropdown-toggle' )
+ })
+
+}( window.jQuery || window.ender );