     //
     //--------------------------------------------------------------------------
     
-    private function dataGroup_itemAddedHandler(event:ItemExistenceChangedEvent):void
-    {
-        // Re-dispatch the event
-        dispatchEvent(event);
-    }
-    
-    private function dataGroup_itemRemovedHandler(event:ItemExistenceChangedEvent):void
-    {
-        // Re-dispatch the event
-        dispatchEvent(event);
-    }
-    
    /**
     * @private
     */

import mx.components.baseClasses.FxContainerBase;
import mx.core.IFactory;
import mx.core.IViewport;
import mx.core.ScrollUnit;
import mx.events.FlexEvent;
import mx.events.ItemExistenceChangedEvent;
import mx.events.PropertyChangeEvent;
import mx.layout.LayoutBase;
import mx.managers.IFocusManagerContainer;
import mx.utils.BitFlagUtil;

/**
 *  Dispatched when an item is added to the content holder.
 *  event.
 *
 *  @eventType mx.events.ItemExistenceChangedEvent.ITEM_ADD
 */
[Event(name="itemAdd", type="mx.events.ItemExistenceChangedEvent")]

/**
 *  Dispatched when an item is removed from the content holder.
 *  event.
 *
 *  @eventType mx.events.ItemExistenceChangedEvent.ITEM_REMOVE
 */
[Event(name="itemRemove", type="mx.events.ItemExistenceChangedEvent")]

include "../styles/metadata/BasicCharacterFormatTextStyles.as"
include "../styles/metadata/BasicContainerFormatTextStyles.as"

        if (instance == dataGroup)
        {
            dataGroup.removeEventListener(
                PropertyChangeEvent.PROPERTY_CHANGE, dataGroup_propertyChangeHandler);
            
            // copy proxied values from dataGroup (if explicitely set) to dataGroupProperties
            
            var newDataGroupProperties:Object = {};
            
            if (BitFlagUtil.isSet(dataGroupProperties as uint, CLIP_AND_ENABLE_SCROLLING_PROPERTY_FLAG))
                newDataGroupProperties.clipAndEnableScrolling = dataGroup.clipAndEnableScrolling;
            
            if (BitFlagUtil.isSet(dataGroupProperties as uint, LAYOUT_PROPERTY_FLAG))
                newDataGroupProperties.layout = dataGroup.layout;
