Changeset 3120 for ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ComponentListService.as
- Timestamp:
- 07/08/13 14:27:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ComponentListService.as
r867 r3120 5 5 import mx.collections.ArrayCollection; 6 6 import mx.rpc.events.ResultEvent; 7 import flash.events.Event; 7 8 9 [Event(name="componentsLoaded", type="flash.events.Event")] 8 10 public class ComponentListService extends BrowserService { 9 11 12 public static const COMPONENTS_LOADED:String = "componentsLoaded"; 13 10 14 private static var _instance:ComponentListService = new ComponentListService(); 11 15 private static var _userSpaceInstance:ComponentListService = new ComponentListService(true); … … 28 32 tempArray.refresh(); 29 33 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); 31 37 } 32 38
Note: See TracChangeset
for help on using the changeset viewer.