Skip to content

Commit

Permalink
Fix swf build (was:duplicate function/method declaration)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-dove committed May 25, 2022
1 parent fd3265f commit 7e9620f
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions frameworks/projects/MXRoyale/src/main/royale/mx/controls/Label.as
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,18 @@ public class Label extends UIComponent
super.addedToParent();
model.addEventListener("textChange", repeaterListener);
model.addEventListener("htmlChange", repeaterListener);
//@todo check the following for swf:
//truncateToFit = _truncateToFit;
}

/**
* @private
*/
COMPILE::JS
override public function addedToParent():void
{
super.addedToParent();
truncateToFit = _truncateToFit;
}

/**
Expand Down Expand Up @@ -916,11 +928,6 @@ public class Label extends UIComponent
_truncateToFit = value;
}

override public function addedToParent():void
{
super.addedToParent();
truncateToFit = _truncateToFit;
}


//--------------------------------------------------------------------------
Expand Down

0 comments on commit 7e9620f

Please sign in to comment.