aboutsummaryrefslogtreecommitdiff
path: root/js/dropdown.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-11-30 00:26:53 -0800
committerMark Otto <[email protected]>2013-11-30 00:26:53 -0800
commitbb4a39d51cd644b212323a7e36f0b5af2682d0ca (patch)
tree60ae6687f516cea501f32f5623a5c0aacb950772 /js/dropdown.js
parent96109d3138fd6f5b67fb1108754e81c077630b36 (diff)
parente6eb798178529cf58fab3f33446c0170bae7bdea (diff)
downloadbootstrap-bb4a39d51cd644b212323a7e36f0b5af2682d0ca.tar.xz
bootstrap-bb4a39d51cd644b212323a7e36f0b5af2682d0ca.zip
Merge branch 'master' into pr/11388
Conflicts: dist/css/bootstrap.min.css
Diffstat (limited to 'js/dropdown.js')
-rw-r--r--js/dropdown.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/dropdown.js b/js/dropdown.js
index d5da638de..147fcd7b0 100644
--- a/js/dropdown.js
+++ b/js/dropdown.js
@@ -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)
})
}