Skip to content

Commit

Permalink
Fix class$ bindings for ShadyDOM.noPatch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed May 3, 2019
1 parent 969f289 commit a0b83b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mixins/properties-changed.js
Expand Up @@ -497,12 +497,12 @@ export const PropertiesChanged = dedupingMixin(
*/
_valueToNodeAttribute(node, value, attribute) {
const str = this._serializeValue(value);
if (attribute === 'class' || attribute === 'name' || attribute === 'slot') {
node = /** @type {?Element} */(wrap(node));
}
if (str === undefined) {
node.removeAttribute(attribute);
} else {
if (attribute === 'class' || attribute === 'name' || attribute === 'slot') {
node = /** @type {?Element} */(wrap(node));
}
node.setAttribute(attribute, str);
}
}
Expand Down

0 comments on commit a0b83b2

Please sign in to comment.