aboutsummaryrefslogtreecommitdiff
path: root/js/dropdown.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-11-30 00:55:00 -0800
committerMark Otto <[email protected]>2013-11-30 00:55:00 -0800
commit080aa7f5c8557b232005cb947df51968d4629656 (patch)
treee546cc3ec229d201751e426da36a1b2a586ee428 /js/dropdown.js
parent441f9d67179f766377eed4b0cedc5dc6eec290e4 (diff)
parent819e920d1646f7e9fec8d3dd6ba10dcbd2fa1599 (diff)
downloadbootstrap-080aa7f5c8557b232005cb947df51968d4629656.tar.xz
bootstrap-080aa7f5c8557b232005cb947df51968d4629656.zip
Merge branch 'master' into pr/11299
Conflicts: dist/css/bootstrap.min.css docs-assets/js/raw-files.js
Diffstat (limited to 'js/dropdown.js')
-rw-r--r--js/dropdown.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/dropdown.js b/js/dropdown.js
index e45d51c2d..147fcd7b0 100644
--- a/js/dropdown.js
+++ b/js/dropdown.js
@@ -1,5 +1,5 @@
/* ========================================================================
- * Bootstrap: dropdown.js v3.0.0
+ * Bootstrap: dropdown.js v3.0.2
* http://getbootstrap.com/javascript/#dropdowns
* ========================================================================
* Copyright 2013 Twitter, Inc.
@@ -41,7 +41,7 @@
if (!isActive) {
if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
- // if mobile we we use a backdrop because click events don't delegate
+ // if mobile we use a backdrop because click events don't delegate
$('<div class="dropdown-backdrop"/>').insertAfter($(this)).on('click', clearMenus)
}
@@ -123,9 +123,9 @@
$.fn.dropdown = function (option) {
return this.each(function () {
var $this = $(this)
- var data = $this.data('dropdown')
+ var data = $this.data('bs.dropdown')
- if (!data) $this.data('dropdown', (data = new Dropdown(this)))
+ if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
if (typeof option == 'string') data[option].call($this)
})
}
@@ -151,4 +151,4 @@
.on('click.bs.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
.on('keydown.bs.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
-}(window.jQuery);
+}(jQuery);