             else if (!(iconField || (iconFunction != null)) && iconDisplay)
             {
                 // need to remove the display object
-                var oldDisplayObject:DisplayObject = iconDisplay.displayObject;
+                oldDisplayObject = iconDisplay.displayObject;
                 if (oldDisplayObject)
                 { 
                     // If the element created the display object

import mx.graphics.BitmapFillMode;
import mx.graphics.BitmapScaleMode;
import mx.styles.CSSStyleDeclaration;

import spark.components.supportClasses.StyleableTextField;
import spark.core.ContentCache;

     *  <p>The decorator icon ignores the <code>verticalAlign</code> style
     *  and is always centered vertically.</p>
     *
     *  <p>The decorator icon is expected to be an embedded asset.  There can
     *  be performance degradation if using external assets.</p>
     *
     *  @default "" 
     * 
     *  @langversion 3.0
