修复因fastlist component丢失问题
This commit is contained in:
@@ -1513,7 +1513,6 @@ var es;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
this.startDebugUpdate();
|
||||
es.Time.update(egret.getTimer());
|
||||
es.Input.update();
|
||||
if (!this._scene) return [3, 2];
|
||||
@@ -1537,9 +1536,7 @@ var es;
|
||||
_a.sent();
|
||||
this.addChild(this._scene);
|
||||
_a.label = 2;
|
||||
case 2:
|
||||
this.endDebugUpdate();
|
||||
return [4, this.draw()];
|
||||
case 2: return [4, this.draw()];
|
||||
case 3:
|
||||
_a.sent();
|
||||
return [2];
|
||||
@@ -4932,6 +4929,8 @@ var es;
|
||||
ComponentList.prototype.deregisterAllComponents = function () {
|
||||
for (var i = 0; i < this._components.length; i++) {
|
||||
var component = this._components.buffer[i];
|
||||
if (!component)
|
||||
continue;
|
||||
if (component instanceof es.RenderableComponent) {
|
||||
if (component.displayObject.parent)
|
||||
component.displayObject.parent.removeChild(component.displayObject);
|
||||
@@ -5001,6 +5000,8 @@ var es;
|
||||
}
|
||||
};
|
||||
ComponentList.prototype.handleRemove = function (component) {
|
||||
if (!component)
|
||||
return;
|
||||
if (component instanceof es.RenderableComponent) {
|
||||
if (component.displayObject.parent)
|
||||
component.displayObject.parent.removeChild(component.displayObject);
|
||||
|
||||
Reference in New Issue
Block a user