Commit 0bf5fa9e authored by 李维's avatar 李维

去掉无用的注释

parent 93011a28
...@@ -297,7 +297,6 @@ export default class PageViewerClass extends cc.Component { ...@@ -297,7 +297,6 @@ export default class PageViewerClass extends cc.Component {
this.runGC(); this.runGC();
this.courseBackViewName = viewName; this.courseBackViewName = viewName;
this[PageMap[viewName]].active = false; this[PageMap[viewName]].active = false;
this.destroyPage(this[PageMap[viewName]])
} }
courseClose() { courseClose() {
...@@ -307,7 +306,7 @@ export default class PageViewerClass extends cc.Component { ...@@ -307,7 +306,7 @@ export default class PageViewerClass extends cc.Component {
} }
// 执行垃圾回收 // 执行垃圾回收
this.runGC(); this.runGC();
// 触发页面beforeMount生命周期 // 触发页面beforeMount生命周期
this[PageMap[this.courseBackViewName]].emit("beforeMount"); this[PageMap[this.courseBackViewName]].emit("beforeMount");
this[PageMap[this.courseBackViewName]].active = true; this[PageMap[this.courseBackViewName]].active = true;
......
...@@ -230,7 +230,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -230,7 +230,7 @@ export abstract class middleLayerBase extends cc.Component {
if (this.oldSceneName) { if (this.oldSceneName) {
await this.checkRotateScreen(this.oldSceneName, sceneName); await this.checkRotateScreen(this.oldSceneName, sceneName);
} }
this.releaseAssets(); this.releaseAssets();
this.assetList = []; this.assetList = [];
this.textureList = []; this.textureList = [];
...@@ -485,13 +485,12 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -485,13 +485,12 @@ export abstract class middleLayerBase extends cc.Component {
deepDrog(child); deepDrog(child);
}); });
} }
// 暂时注释掉
deepDrog(cc.find("Canvas")); deepDrog(cc.find("Canvas"));
// 释放远程加载的资源 // 释放远程加载的资源
cc.assetManager.assets.forEach(item => { cc.assetManager.assets.forEach(item => {
if (item.nativeUrl.indexOf(`h5template`) == -1 && item.nativeUrl.indexOf(`dist`) == -1 && item.nativeUrl.indexOf(`http`) > -1) { if (item.nativeUrl.indexOf(`h5template`) == -1 && item.nativeUrl.indexOf(`dist`) == -1 && item.nativeUrl.indexOf(`http`) > -1) {
console.log("Release: " + item.nativeUrl) // console.log("Release: " + item.nativeUrl)
cc.assetManager.releaseAsset(item); cc.assetManager.releaseAsset(item);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment