Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Apache Flex 4.9.0
Description
Original:
override protected function commitProperties():void
{
super.commitProperties();
if (titleChanged)
{ titleText.text = _title; titleChanged = false; } if (titleIconChanged)
{
if (titleIconObject)
if (_titleIcon && titleIconImage)
{ titleIconObject = new _titleIcon(); titleIconImage.source = titleIconObject; }
titleIconChanged = false;
}
}
Solution:
override protected function commitProperties():void
{
super.commitProperties();
if (titleChanged)
{
if(titleText)
{ titleText.text = _title; titleChanged = false; }
}
if (titleIconChanged)
{
if (titleIconObject)
{ titleIconImage.source = null; titleIconObject = null; }
if (_titleIcon && titleIconImage)
{ titleIconObject = new _titleIcon(); titleIconImage.source = titleIconObject; } titleIconChanged = false;
}
}