From e24c8f63ea25d9b765d75b8c82bbb2b74794f5e2 Mon Sep 17 00:00:00 2001 From: Jon White Date: Wed, 2 Apr 2014 15:39:20 -0500 Subject: [PATCH] Fixed bug where move up and move down method in groups did not work. --- src/core/Group.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Group.js b/src/core/Group.js index c91e07da0..7030d357b 100644 --- a/src/core/Group.js +++ b/src/core/Group.js @@ -476,7 +476,7 @@ Phaser.Group.prototype.moveUp = function (child) { if (b) { - this.swap(a, b); + this.swap(child, b); } } @@ -500,7 +500,7 @@ Phaser.Group.prototype.moveDown = function (child) { if (b) { - this.swap(a, b); + this.swap(child, b); } }