Skip to content

Commit

Permalink
fixed node remove() functions to actually return nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamAtomic committed May 2, 2011
1 parent 61fd4db commit 5ff4e37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions org/flixel/FlxPath.as
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ package org.flixel
{
var index:int = nodes.indexOf(Node);
if(index >= 0)
return nodes.splice(index,1);
return nodes.splice(index,1)[0];
else
return null;
}
Expand All @@ -165,7 +165,7 @@ package org.flixel
return null;
if(Index >= nodes.length)
Index = nodes.length-1;
return nodes.splice(Index,1);
return nodes.splice(Index,1)[0];
}

/**
Expand Down

0 comments on commit 5ff4e37

Please sign in to comment.