@leafer-ui/app 1.0.0-beta.11 → 1.0.0-beta.12
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/package.json +7 -7
- package/src/Leafer.ts +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/app",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.12",
|
|
4
4
|
"description": "@leafer-ui/app",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"leaferjs"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@leafer/core": "1.0.0-beta.
|
|
23
|
-
"@leafer-ui/display": "1.0.0-beta.
|
|
24
|
-
"@leafer-ui/type": "1.0.0-beta.
|
|
25
|
-
"@leafer-ui/data": "1.0.0-beta.
|
|
22
|
+
"@leafer/core": "1.0.0-beta.12",
|
|
23
|
+
"@leafer-ui/display": "1.0.0-beta.12",
|
|
24
|
+
"@leafer-ui/type": "1.0.0-beta.12",
|
|
25
|
+
"@leafer-ui/data": "1.0.0-beta.12"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@leafer/interface": "1.0.0-beta.
|
|
29
|
-
"@leafer-ui/interface": "1.0.0-beta.
|
|
28
|
+
"@leafer/interface": "1.0.0-beta.12",
|
|
29
|
+
"@leafer-ui/interface": "1.0.0-beta.12"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/Leafer.ts
CHANGED
|
@@ -278,11 +278,12 @@ export class Leafer extends Group implements ILeafer {
|
|
|
278
278
|
|
|
279
279
|
protected __removeListenEvents(): void {
|
|
280
280
|
this.off_(this.__eventIds)
|
|
281
|
+
this.__eventIds.length = 0
|
|
281
282
|
}
|
|
282
283
|
|
|
283
284
|
public destroy(): void {
|
|
284
285
|
setTimeout(() => {
|
|
285
|
-
if (this.
|
|
286
|
+
if (!this.destroyed) {
|
|
286
287
|
try {
|
|
287
288
|
this.stop()
|
|
288
289
|
this.emitEvent(new LeaferEvent(LeaferEvent.END, this))
|
|
@@ -301,8 +302,7 @@ export class Leafer extends Group implements ILeafer {
|
|
|
301
302
|
|
|
302
303
|
this.canvas.destroy()
|
|
303
304
|
|
|
304
|
-
this.config = this.userConfig
|
|
305
|
-
this.selector = this.interaction = this.canvasManager = this.hitCanvasManager = null
|
|
305
|
+
this.config.view = this.userConfig.view = this.view = null
|
|
306
306
|
|
|
307
307
|
super.destroy()
|
|
308
308
|
|
|
@@ -312,5 +312,6 @@ export class Leafer extends Group implements ILeafer {
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}, 0)
|
|
315
|
+
|
|
315
316
|
}
|
|
316
317
|
}
|