Sha256: 211c7466ea561fef450a7cf92907bfc267e8eea447a5c480636ed02707c83931
Contents?: true
Size: 874 Bytes
Versions: 2
Compression:
Stored size: 874 Bytes
Contents
package <%= base_package%>.shell.controller { import org.puremvc.as3.multicore.patterns.observer.Notification; import <%= base_package%>.shell.<%= name%>ShellConstants; import <%= base_package%>.shell.model.ModuleDescriptor; import <%= base_package%>.shell.model.ListProxy; import org.puremvc.as3.multicore.interfaces.INotification; import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand; public class RemoveModuleCommand extends SimpleFabricationCommand { override public function execute(note:INotification):void { var moduleDescriptor:ModuleDescriptor = note.getBody() as ModuleDescriptor; var moduleListProxy:ListProxy = retrieveProxy(ListProxy.NAME) as ListProxy; moduleListProxy.remove(moduleDescriptor); executeCommand(ChangeSelectedModuleCommand, null); } } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fabricator-0.0.1 | app_generators/pureapp/templates/shell/controller/remove_module_command.as |
fabricator-0.0.5 | app_generators/pureapp/templates/shell/controller/remove_module_command.as |