From 5df6e992cbc4c8888ceadf08ec276a81b39d0747 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Tue, 12 Nov 2019 17:03:11 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit 2cf7294 --- src/js/material.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/material.js b/src/js/material.js index 92f5a70..360f144 100644 --- a/src/js/material.js +++ b/src/js/material.js @@ -1,4 +1,4 @@ -;(function() { +(function() { "use strict"; /** @@ -2220,7 +2220,7 @@ MaterialSnackbar.prototype.cleanup_ = function () { setTimeout(function () { this.element_.setAttribute('aria-hidden', 'true'); this.textElement_.textContent = ''; - if (!Boolean(this.actionElement_.getAttribute('aria-hidden'))) { + if (!this.actionElement_.getAttribute('aria-hidden')) { this.setActionHidden_(true); this.actionElement_.textContent = ''; this.actionElement_.removeEventListener('click', this.actionHandler_); @@ -2881,7 +2881,7 @@ MaterialTextfield.prototype['checkDisabled'] = MaterialTextfield.prototype.check * @public */ MaterialTextfield.prototype.checkFocus = function () { - if (Boolean(this.element_.querySelector(':focus'))) { + if ((this.element_.querySelector(':focus'))) { this.element_.classList.add(this.CssClasses_.IS_FOCUSED); } else { this.element_.classList.remove(this.CssClasses_.IS_FOCUSED);