aboutsummaryrefslogtreecommitdiff
path: root/js/dist/button.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-01-05 14:51:14 -0800
committerMark Otto <[email protected]>2017-01-05 14:51:14 -0800
commit43d9391fba015f13f06f3af4dc6f5a8205cb548b (patch)
tree79b6890e3274ab3f8882e8b0684064fbe4bb9756 /js/dist/button.js
parent4d4085a59f92ed59ba3fb5e664ec6df0976b3c2e (diff)
downloadbootstrap-43d9391fba015f13f06f3af4dc6f5a8205cb548b.tar.xz
bootstrap-43d9391fba015f13f06f3af4dc6f5a8205cb548b.zip
grunt
Diffstat (limited to 'js/dist/button.js')
-rw-r--r--js/dist/button.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/dist/button.js b/js/dist/button.js
index eff882c6d..72e9e067d 100644
--- a/js/dist/button.js
+++ b/js/dist/button.js
@@ -87,10 +87,10 @@ var Button = function ($) {
input.focus();
}
- } else {
- this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE));
}
+ this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE));
+
if (triggerChangeEvent) {
$(this._element).toggleClass(ClassName.ACTIVE);
}