File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/plugins/embeddable/public/lib/embeddables Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments