This commit is contained in:
Mark Otto 2017-01-05 14:51:14 -08:00
parent 4d4085a59f
commit 43d9391fba
7 changed files with 18 additions and 18 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);
}

BIN
js/dist/button.js.map vendored

Binary file not shown.