modern-canvas 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.js +3 -3
- package/dist/index.mjs +4 -4
- package/package.json +12 -12
package/dist/index.cjs
CHANGED
|
@@ -5930,12 +5930,12 @@ exports.Node = class Node extends CoreObject {
|
|
|
5930
5930
|
setTree(tree) {
|
|
5931
5931
|
const oldTree = this._tree;
|
|
5932
5932
|
if (tree !== oldTree) {
|
|
5933
|
+
if (oldTree) {
|
|
5934
|
+
this.emit("treeExit", oldTree);
|
|
5935
|
+
}
|
|
5936
|
+
this._tree = tree;
|
|
5933
5937
|
if (tree) {
|
|
5934
|
-
this._tree = tree;
|
|
5935
5938
|
this.emit("treeEnter", tree);
|
|
5936
|
-
} else if (oldTree) {
|
|
5937
|
-
this.emit("treeExit", oldTree);
|
|
5938
|
-
this._tree = tree;
|
|
5939
5939
|
}
|
|
5940
5940
|
for (let len = this._children.length, i = 0; i < len; i++) {
|
|
5941
5941
|
const node = this._children[i];
|