aboutsummaryrefslogtreecommitdiff
path: root/js/dist/collapse.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-04-16 13:54:07 -0700
committerMark Otto <[email protected]>2017-04-16 13:54:07 -0700
commitbc0cf36dc85cc974d92d3a7c64987aa6bc37ea25 (patch)
treed188fe5f7806b9f51678de2c2968ada349ab729e /js/dist/collapse.js
parent6d64afe508bfd0bcfb5831a9a4708cef4ad88334 (diff)
downloadbootstrap-bc0cf36dc85cc974d92d3a7c64987aa6bc37ea25.tar.xz
bootstrap-bc0cf36dc85cc974d92d3a7c64987aa6bc37ea25.zip
grunt
Diffstat (limited to 'js/dist/collapse.js')
-rw-r--r--js/dist/collapse.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/js/dist/collapse.js b/js/dist/collapse.js
index 6e570b890..6601b6a36 100644
--- a/js/dist/collapse.js
+++ b/js/dist/collapse.js
@@ -150,7 +150,6 @@ var Collapse = function ($) {
$(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING);
this._element.style[dimension] = 0;
- this._element.setAttribute('aria-expanded', true);
if (this._triggerArray.length) {
$(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true);
@@ -202,8 +201,6 @@ var Collapse = function ($) {
$(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW);
- this._element.setAttribute('aria-expanded', false);
-
if (this._triggerArray.length) {
$(this._triggerArray).addClass(ClassName.COLLAPSED).attr('aria-expanded', false);
}
@@ -269,7 +266,6 @@ var Collapse = function ($) {
Collapse.prototype._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
if (element) {
var isOpen = $(element).hasClass(ClassName.SHOW);
- element.setAttribute('aria-expanded', isOpen);
if (triggerArray.length) {
$(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);