Ignore:
Timestamp:
07/08/13 14:27:42 (12 years ago)
Author:
olhsha
Message:

Bug 322 (visible in Opera and 50% f times in Chrome) seems to be fixed by: splitting up BrowserService?.ITEM_LOADED event into ComponentListService?.COMPONENTS_LOADED and ProfilesListService?.PROFILES_LOADED, and running load infor page only AFTER BOTH these events have dispatched.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ComponentListService.as

    r867 r3120  
    55        import mx.collections.ArrayCollection;
    66        import mx.rpc.events.ResultEvent;
     7        import flash.events.Event;
    78
     9        [Event(name="componentsLoaded", type="flash.events.Event")]
    810        public class ComponentListService extends BrowserService {
    911
     12                public static const COMPONENTS_LOADED:String = "componentsLoaded";
     13               
    1014                private static var _instance:ComponentListService = new ComponentListService();
    1115                private static var _userSpaceInstance:ComponentListService = new ComponentListService(true);
     
    2832                        tempArray.refresh();
    2933            setItemDescriptions(new ArrayCollection(tempArray.toArray()));
    30                     super.result(resultEvent);
     34                        trace(itemDescriptions.length + " components are loaded");
     35                        dispatchEvent(new Event(COMPONENTS_LOADED));
     36                    // super.result(resultEvent);
    3137                }
    3238
Note: See TracChangeset for help on using the changeset viewer.