mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
Merge pull request #451 from pandamicro/master
Fix EVENT_AFTER_SCENE_LAUNCH not fired isse
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