mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
Merge pull request #452 from cocos-creator/master
Fix EVENT_AFTER_SCENE_LAUNCH not fired issue to v1.0
This commit is contained in:
@@ -539,8 +539,8 @@ cc.Director = Class.extend(/** @lends cc.Director# */{
|
||||
|
||||
if (onLaunched) {
|
||||
onLaunched(null, scene);
|
||||
this.emit(cc.Director.EVENT_AFTER_SCENE_LAUNCH, scene);
|
||||
}
|
||||
this.emit(cc.Director.EVENT_AFTER_SCENE_LAUNCH, scene);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -151,8 +151,8 @@ cc.js.mixin(cc.director, {
|
||||
|
||||
if (onLaunched) {
|
||||
onLaunched(null, scene);
|
||||
this.emit(cc.Director.EVENT_AFTER_SCENE_LAUNCH, scene);
|
||||
}
|
||||
this.emit(cc.Director.EVENT_AFTER_SCENE_LAUNCH, scene);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user