[CodeFactor] Apply fixes to commit 2cf7294
This commit is contained in:
parent
2cf7294ce0
commit
5df6e992cb
@ -1,4 +1,4 @@
|
|||||||
;(function() {
|
(function() {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2220,7 +2220,7 @@ MaterialSnackbar.prototype.cleanup_ = function () {
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
this.element_.setAttribute('aria-hidden', 'true');
|
this.element_.setAttribute('aria-hidden', 'true');
|
||||||
this.textElement_.textContent = '';
|
this.textElement_.textContent = '';
|
||||||
if (!Boolean(this.actionElement_.getAttribute('aria-hidden'))) {
|
if (!this.actionElement_.getAttribute('aria-hidden')) {
|
||||||
this.setActionHidden_(true);
|
this.setActionHidden_(true);
|
||||||
this.actionElement_.textContent = '';
|
this.actionElement_.textContent = '';
|
||||||
this.actionElement_.removeEventListener('click', this.actionHandler_);
|
this.actionElement_.removeEventListener('click', this.actionHandler_);
|
||||||
@ -2881,7 +2881,7 @@ MaterialTextfield.prototype['checkDisabled'] = MaterialTextfield.prototype.check
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
MaterialTextfield.prototype.checkFocus = function () {
|
MaterialTextfield.prototype.checkFocus = function () {
|
||||||
if (Boolean(this.element_.querySelector(':focus'))) {
|
if ((this.element_.querySelector(':focus'))) {
|
||||||
this.element_.classList.add(this.CssClasses_.IS_FOCUSED);
|
this.element_.classList.add(this.CssClasses_.IS_FOCUSED);
|
||||||
} else {
|
} else {
|
||||||
this.element_.classList.remove(this.CssClasses_.IS_FOCUSED);
|
this.element_.classList.remove(this.CssClasses_.IS_FOCUSED);
|
||||||
|
Reference in New Issue
Block a user