Skip to content

Commit d2dce27

Browse files
authored
Merge pull request phaserjs#5082 from MrMadClown/master
phaserjs#5078
2 parents 5d2f61b + 6e30293 commit d2dce27

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/scene/ScenePlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ var ScenePlugin = new Class({
319319

320320
if (target.sys.isSleeping())
321321
{
322-
target.sys.wake();
322+
target.sys.wake(GetFastValue(config, 'data'));
323323
}
324324
else
325325
{

src/scene/typedefs/SceneTransitionConfig.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
* @property {string} target - The Scene key to transition to.
66
* @property {integer} [duration=1000] - The duration, in ms, for the transition to last.
77
* @property {boolean} [sleep=false] - Will the Scene responsible for the transition be sent to sleep on completion (`true`), or stopped? (`false`)
8+
* @property {boolean} [remove=false] - Will the Scene responsible for the transition be removed from the Scene Manager after the transition completes?
89
* @property {boolean} [allowInput=false] - Will the Scenes Input system be able to process events while it is transitioning in or out?
910
* @property {boolean} [moveAbove] - Move the target Scene to be above this one before the transition starts.
1011
* @property {boolean} [moveBelow] - Move the target Scene to be below this one before the transition starts.
1112
* @property {function} [onUpdate] - This callback is invoked every frame for the duration of the transition.
1213
* @property {any} [onUpdateScope] - The context in which the callback is invoked.
13-
* @property {any} [data] - An object containing any data you wish to be passed to the target Scenes init / create methods.
14+
* @property {any} [data] - An object containing any data you wish to be passed to the target scene's init / create methods (if sleep is false) or to the target scene's wake event callback (if sleep is true).
1415
*/

0 commit comments

Comments
 (0)