Skip to content

Commit

Permalink
Restore explicit boolean checks in element-controller methods
Browse files Browse the repository at this point in the history
  • Loading branch information
doguabaris committed Dec 10, 2024
1 parent a75c090 commit 9fb4760
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export class ElementController<TElement extends HTMLElement = HTMLElement>
}

protected connectBehaviors() {
if (!this.behaviorsConnected) {
if (this.behaviorsConnected === false) {
const behaviors = this.behaviors;
if (behaviors !== null) {
this.guardBehaviorConnection = true;
Expand All @@ -427,7 +427,7 @@ export class ElementController<TElement extends HTMLElement = HTMLElement>
}

protected disconnectBehaviors() {
if (this.behaviorsConnected) {
if (this.behaviorsConnected === true) {
const behaviors = this.behaviors;

if (behaviors !== null) {
Expand Down

0 comments on commit 9fb4760

Please sign in to comment.