Skip to content

Commit b513a5a

Browse files
committed
fix: clean code
1 parent 35d3a9d commit b513a5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/scoped-custom-element-registry/src/scoped-custom-element-registry.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,8 @@ if (!ShadowRoot.prototype.createElement) {
348348
}
349349
const toggleAttribute = elementClass.prototype.toggleAttribute;
350350
if (toggleAttribute) {
351-
elementClass.prototype.toggleAttribute = function (n, f) {
351+
elementClass.prototype.toggleAttribute = function (n, force) {
352352
const name = n.toLowerCase();
353-
const force = typeof f === 'undefined' ? undefined : !!f
354353
if (observedAttributes.has(name)) {
355354
const old = this.getAttribute(name);
356355
toggleAttribute.call(this, name, force);

0 commit comments

Comments
 (0)