Removed the on disconnected callback for elements since the only subscriber is the template and the template is already deconstructed by the element so there is no need to call it twice via the callback.
This commit is contained in:
@ -51,7 +51,6 @@ class IgniteElement extends HTMLElement {
|
||||
super();
|
||||
|
||||
this.elementConnected = false;
|
||||
this.onDisconnected = null;
|
||||
this.template = null;
|
||||
this.elements = [];
|
||||
this.createProperties();
|
||||
@ -247,12 +246,6 @@ class IgniteElement extends HTMLElement {
|
||||
this.template.deconstruct();
|
||||
}
|
||||
|
||||
//If we have a onDisconnected callback, call it and then remove the reference.
|
||||
if (this.onDisconnected) {
|
||||
this.onDisconnected();
|
||||
this.onDisconnected = null;
|
||||
}
|
||||
|
||||
//Detach the after render callback
|
||||
this.readyCallback.disconnect();
|
||||
|
||||
|
Reference in New Issue
Block a user