* Destroy function * @ignore
()
| 377 | * @ignore |
| 378 | */ |
| 379 | destroy() { |
| 380 | // free some property objects |
| 381 | if (this.renderable) { |
| 382 | this.renderable.destroy.apply(this.renderable, arguments); |
| 383 | this.children.splice(0, 1); |
| 384 | } |
| 385 | |
| 386 | // call the parent destroy method |
| 387 | super.destroy(arguments); |
| 388 | } |
| 389 | |
| 390 | /** |
| 391 | * onDeactivateEvent Notification function |