From 0d5953f1b3b2ec131ccab21cbbf11d46f18d4aaa Mon Sep 17 00:00:00 2001 From: "Andreas Renberg (IQAndreas)" Date: Sat, 26 Oct 2013 08:06:17 +0200 Subject: [PATCH] Revert "Add `FlxGroup::revive()`" The following commit has been undone: https://github.com/FlixelCommunity/flixel/pull/110 And a tiny bit of documentation has been added describing the changes. Discussion: - https://github.com/FlixelCommunity/flixel/pull/185 - https://github.com/FlixelCommunity/flixel/issues/30#issuecomment-26753623 --- src/org/flixel/FlxGroup.as | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/org/flixel/FlxGroup.as b/src/org/flixel/FlxGroup.as index 37051c71..d8ffe6f4 100644 --- a/src/org/flixel/FlxGroup.as +++ b/src/org/flixel/FlxGroup.as @@ -573,21 +573,12 @@ package org.flixel } /** - * Calls revive on the group itself and then on the group's members. + * Calls revive on the group object. Note: Does not revive any of the members! */ override public function revive():void { // Revive the group itself super.revive(); - - var basic:FlxBasic; - var i:uint = 0; - while(i < length) - { - basic = members[i++] as FlxBasic; - if((basic != null) && !basic.alive) - basic.revive(); - } } /**