Skip to content

Commit

Permalink
fixing Flash Builder warning around assignment in a control statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pellerano committed Aug 15, 2013
1 parent b9d266d commit ffe990f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/org/osflash/signals/DeluxeSignal.as
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ package org.osflash.signals

var currentTarget:Object = target;

while (currentTarget && currentTarget.hasOwnProperty("parent")
&& (currentTarget = currentTarget["parent"]))
while (currentTarget && currentTarget.hasOwnProperty("parent"))
{
currentTarget = currentTarget["parent"];
if (!currentTarget) break;

if (currentTarget is IBubbleEventHandler)
{
// onEventBubbled() can stop the bubbling by returning false.
Expand Down

0 comments on commit ffe990f

Please sign in to comment.