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/ProfileListService.as

    r867 r3120  
    44       
    55        import mx.collections.ArrayCollection;
    6         import mx.rpc.events.ResultEvent;
    7 
     6        import mx.rpc.events.ResultEvent;       
     7        import flash.events.Event;
     8       
     9       
     10        [Event(name="profilesLoaded", type="flash.events.Event")]
    811        public class ProfileListService extends BrowserService {
    912               
     
    1114                private static var _userSpaceInstance:ProfileListService = new ProfileListService(true);
    1215
     16                public static const PROFILES_LOADED:String = "profilesLoaded";
     17               
    1318                public function ProfileListService(userSpace:Boolean=false) {
    1419                        super(Config.instance.profileListUrl, userSpace);
     
    2631                        tempArray.sort = BrowserColumns.getInitialSortForProfiles();
    2732                        tempArray.refresh();
    28                         setItemDescriptions(new ArrayCollection(tempArray.toArray()));
    29                     super.result(resultEvent);
     33                        setItemDescriptions(new ArrayCollection(tempArray.toArray()));                 
     34                        trace(itemDescriptions.length + " profiles are loaded");
     35                        dispatchEvent(new Event(PROFILES_LOADED));
     36                    //super.result(resultEvent);
    3037                }
    3138
Note: See TracChangeset for help on using the changeset viewer.