summaryrefslogtreecommitdiff
path: root/bower_components/bootstrap/js/dropdown.js
diff options
context:
space:
mode:
authorThomas Park <thomas@thomaspark.me>2013-12-05 13:05:07 -0500
committerThomas Park <thomas@thomaspark.me>2013-12-05 13:05:07 -0500
commit157ec5feff877cd918a45985ee7368e3d9d7b5b0 (patch)
tree858b929a593790e7b5366860ff129600491b3877 /bower_components/bootstrap/js/dropdown.js
parenta081f72bd6bfc5ae255d21ba58c10fd13cd1fac1 (diff)
3.0.2 -> 3.0.3
Diffstat (limited to 'bower_components/bootstrap/js/dropdown.js')
-rw-r--r--bower_components/bootstrap/js/dropdown.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/bower_components/bootstrap/js/dropdown.js b/bower_components/bootstrap/js/dropdown.js
index d5da638d..13352ef7 100644
--- a/bower_components/bootstrap/js/dropdown.js
+++ b/bower_components/bootstrap/js/dropdown.js
@@ -1,5 +1,5 @@
/* ========================================================================
- * Bootstrap: dropdown.js v3.0.2
+ * Bootstrap: dropdown.js v3.0.3
* http://getbootstrap.com/javascript/#dropdowns
* ========================================================================
* Copyright 2013 Twitter, Inc.
@@ -26,7 +26,7 @@
var backdrop = '.dropdown-backdrop'
var toggle = '[data-toggle=dropdown]'
var Dropdown = function (element) {
- var $el = $(element).on('click.bs.dropdown', this.toggle)
+ $(element).on('click.bs.dropdown', this.toggle)
}
Dropdown.prototype.toggle = function (e) {
@@ -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)
})
}