@jeefo/component
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "@jeefo/component", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"homepage": "https://github.com/je3f0o/jeefo_component", | ||
@@ -5,0 +5,0 @@ "copyright": "2019", |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : structure_component.js | ||
* Created at : 2019-06-26 | ||
* Updated at : 2019-11-19 | ||
* Updated at : 2019-11-23 | ||
* Author : jeefo | ||
@@ -58,2 +58,3 @@ * Purpose : | ||
this.is_attached = false; | ||
this.is_destroyed = false; | ||
this.binding_events = null; | ||
@@ -131,2 +132,4 @@ this.is_self_required = component_definition.is_self_required; | ||
destroy (is_nested) { | ||
if (this.is_destroyed) { return; } | ||
const { $element, controller, parent, children } = this; | ||
@@ -150,2 +153,4 @@ | ||
} | ||
this.is_destroyed = true; | ||
} | ||
@@ -152,0 +157,0 @@ |
78246
2286