This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class NullBudgetGameOption | |
| { | |
| public function NullBudgetGameOption() | |
| { | |
| } | |
| public function select():void { } | |
| public function deselect():void { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface IDisableable | |
| { | |
| function enable():void; | |
| function disable():void; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected function selectedHandler(option:IBudgetGameOption, vo:BudgetGameOptionVO):void | |
| { | |
| enable(vo.enables); | |
| disable(vo.disables); | |
| dispatchUpdate(vo.cost, vo.productivity); | |
| } | |
| protected function enable(option:IDisableable):void | |
| { | |
| option.enable(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.robotlegs.mvcs | |
| { | |
| import org.osflash.signals.ISignal; | |
| import flash.utils.Dictionary; | |
| public class SignalMap implements ISignalMap | |
| { | |
| protected var _handlersBySignal:Dictionary; | |
| public function SignalMap() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Test(expects="org.swiftsuspenders.InjectorError")] | |
| public function signal_values_no_longer_persist_from_one_to_the_next():void | |
| { | |
| var propOne:TestCommandProperty = new TestCommandProperty(); | |
| var propTwo:TestCommandProperty2 = new TestCommandProperty2(); | |
| signalCommandMap.mapSignal(onePropSignal, TestOnePropertyCommand); | |
| var secondPropSignal:TestCommandProperty2Signal = new TestCommandProperty2Signal(); | |
| // this command requires the values dispatched by both signals |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected function mapSignalValues(valueClasses:Array, valueObjects:Array):void { | |
| for (var i:uint = 0; i < valueClasses.length; i++) { | |
| injector.mapValue(valueClasses[i], valueObjects[i]); | |
| } | |
| } | |
| protected function unmapSignalValues(valueClasses:Array, valueObjects:Array):void { | |
| for (var i:uint = 0; i < valueClasses.length; i++) { | |
| injector.unmap(valueClasses[i], valueObjects[i]); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function mapValue(whenAskedFor:Class, useValue:Object, named:String = ""):*; | |
| function unmap(clazz:Class, named:String = ""):void; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (c) 2009 the original author or authors | |
| * | |
| * Permission is hereby granted to use, modify, and distribute this file | |
| * in accordance with the terms of the license agreement accompanying it. | |
| */ | |
| package org.robotlegs.mvcs | |
| { | |
| import flash.display.DisplayObjectContainer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| requiredUsers = new UserDataVOFilter(allUsers) | |
| .onlyManagers() | |
| .withCompanyKey(3) | |
| .withStatus(UserStatus.STAFF) | |
| .data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package modules.common.net | |
| { | |
| import flash.display.DisplayObject; | |
| import org.osflash.signals.Signal; | |
| public class ResourcePromise implements IPromise, IResourcePromise | |
| { | |
| protected var _result:DisplayObject; | |
| protected var _errorMessage:String; | |
| protected var _loaded:Signal = new Signal(DisplayObject); |