             var m:Menu;
             if (menuStyleName)
             {
-                if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
+                for (i = 0; i < menus.length; i++)
                 {
-                    var styleDecl:CSSStyleDeclaration =
-                        StyleManager.getStyleDeclaration("." + menuStyleName);
-         
-                    if (styleDecl)
-                    {
-                        for (i = 0; i < menus.length; i++)
-                        {
-                            m = menus[i];
-                            m.styleDeclaration = styleDecl;
-                            m.regenerateStyleCache(true);
-                        }
-                    }
-                 }
-                 else
-                 {
-                    for (i = 0; i < menus.length; i++)
-                    {
-                        m = menus[i];
-                        m.styleName = menuStyleName;
-                    }
-                 }
+                    m = menus[i];
+                    m.styleName = menuStyleName;
+                }
             }
         }
     }

import mx.controls.treeClasses.DefaultDataDescriptor;
import mx.core.ClassFactory;
import mx.core.EventPriority;
import mx.core.FlexVersion;
import mx.core.IFactory;
import mx.core.IFlexDisplayObject;
import mx.core.IUIComponent;

     */
    override public function get baselinePosition():Number
    {
        if (!validateBaselinePosition())
            return NaN;

