This commit is contained in:
Mark Otto 2017-01-05 14:51:14 -08:00
parent 4d4085a59f
commit 43d9391fba
7 changed files with 19 additions and 19 deletions

View File

@ -442,10 +442,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);
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -442,10 +442,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);
}

File diff suppressed because one or more lines are too long

4
js/dist/button.js vendored
View File

@ -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);
}

File diff suppressed because one or more lines are too long