Skip to content

Commit 1021514

Browse files
author
Steve Orvell
authored
Merge pull request #213 from Westbrook/master
Add disconnectedCallback stub.
2 parents a98f81a + 5ccb6c4 commit 1021514

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/lib/updating-element.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,13 @@ export abstract class UpdatingElement extends HTMLElement {
396396
}
397397
}
398398

399+
/**
400+
* Allows for `super.disconnectedCallback()` in extensions while
401+
* reserving the possibility of making non-breaking feature additions
402+
* when disconnecting at some point in the future.
403+
*/
404+
disconnectedCallback() {}
405+
399406
/**
400407
* Synchronizes property values when attributes change.
401408
*/
@@ -610,4 +617,4 @@ export abstract class UpdatingElement extends HTMLElement {
610617
* * @param _changedProperties Map of changed properties with old values
611618
*/
612619
protected firstUpdated(_changedProperties: PropertyValues) {}
613-
}
620+
}

0 commit comments

Comments
 (0)