Skip to content

Commit 6106389

Browse files
refactor: 💡 fix typo in embeddable (#69417) (#70053)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 57d64fb commit 6106389

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎src/plugins/embeddable/public/lib/embeddables/embeddable.tsx‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export abstract class Embeddable<
5151
// to update input when the parent changes.
5252
private parentSubscription?: Rx.Subscription;
5353

54-
// TODO: Rename to destroyed.
55-
private destoyed: boolean = false;
54+
private destroyed: boolean = false;
5655

5756
constructor(input: TEmbeddableInput, output: TEmbeddableOutput, parent?: IContainer) {
5857
this.id = input.id;
@@ -123,7 +122,7 @@ export abstract class Embeddable<
123122
}
124123

125124
public updateInput(changes: Partial<TEmbeddableInput>): void {
126-
if (this.destoyed) {
125+
if (this.destroyed) {
127126
throw new Error('Embeddable has been destroyed');
128127
}
129128
if (this.parent) {
@@ -135,7 +134,7 @@ export abstract class Embeddable<
135134
}
136135

137136
public render(domNode: HTMLElement | Element): void {
138-
if (this.destoyed) {
137+
if (this.destroyed) {
139138
throw new Error('Embeddable has been destroyed');
140139
}
141140
return;
@@ -155,7 +154,7 @@ export abstract class Embeddable<
155154
* implementors to add any additional clean up tasks, like unmounting and unsubscribing.
156155
*/
157156
public destroy(): void {
158-
this.destoyed = true;
157+
this.destroyed = true;
159158

160159
this.input$.complete();
161160
this.output$.complete();

0 commit comments

Comments
 (0)