Permalink
Browse files

fix(Component): Fixed an issue where setter wouldn't recognize presen…

…ce attributes
  • Loading branch information...
calebdwilliams committed Jul 20, 2018
1 parent a4a66d1 commit 0fe2ce06573dc5c815d88567b112e6511bf8606c
@@ -475,7 +475,7 @@ class Component extends HTMLElement {
return this.getAttribute(attr) || this.hasAttribute(attr);
},
set(_attr) {
if (_attr || attr === '') {
if (_attr || _attr === '') {
this.setAttribute(attr, _attr);
} else {
this.removeAttribute(attr);

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -471,7 +471,7 @@ class Component extends HTMLElement {
return this.getAttribute(attr) || this.hasAttribute(attr);
},
set(_attr) {
if (_attr || attr === '') {
if (_attr || _attr === '') {
this.setAttribute(attr, _attr);
} else {
this.removeAttribute(attr);

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -474,7 +474,7 @@ class Component extends HTMLElement {
return this.getAttribute(attr) || this.hasAttribute(attr);
},
set(_attr) {
if (_attr || attr === '') {
if (_attr || _attr === '') {
this.setAttribute(attr, _attr);
} else {
this.removeAttribute(attr);

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -477,7 +477,7 @@ class Component extends HTMLElement {
return this.getAttribute(attr) || this.hasAttribute(attr);
},
set(_attr) {
if (_attr || attr === '') {
if (_attr || _attr === '') {
this.setAttribute(attr, _attr);
} else {
this.removeAttribute(attr);

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -65,7 +65,7 @@ export class Component extends HTMLElement {
return this.getAttribute(attr) || this.hasAttribute(attr);
},
set(_attr) {
if (_attr || attr === '') {
if (_attr || _attr === '') {
this.setAttribute(attr, _attr);
} else {
this.removeAttribute(attr);

0 comments on commit 0fe2ce0

Please sign in to comment.