Skip to content

Commit 6795d51

Browse files
committed
Some more Remote Handler code removed.
1 parent 65d7cc5 commit 6795d51

File tree

15 files changed

+37
-117
lines changed

15 files changed

+37
-117
lines changed

mvcExpress-frameWork.as3proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
</library>
7979
<!-- Class files to compile (other referenced classes will automatically be included) -->
8080
<compileTargets>
81-
<compile path="test\MvcExpressTestRunner.as" />
81+
<compile path="sampleProjects\com\mindScriptAct\mvcExpressSpeedTest\MvcExpressSpeedTest.as" />
8282
</compileTargets>
8383
<!-- Paths to exclude from the Project Explorer tree -->
8484
<hiddenPaths>

sampleProjects/com/mindScriptAct/modules/counter/CounterModule.as

Lines changed: 0 additions & 50 deletions
This file was deleted.

sampleProjects/com/mindScriptAct/modules/counter/view/CounterModuleMediator.as

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/org/mvcexpress/MvcExpress.as

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ public class MvcExpress {
1010
public static const WEBSITE_URL:String = "http://mvcexpress.org";
1111

1212
/** Current framework major version */
13-
public static const MAJOR_VERSION:uint = 0;
13+
public static const MAJOR_VERSION:uint = 1;
1414
/** Current framework minor version */
15-
public static const MINOR_VERSION:uint = 9;
15+
public static const MINOR_VERSION:uint = 0;
1616
/** Current framework revision version */
17-
public static const REVISION:uint = 9;
17+
public static const REVISION:uint = 0;
1818

1919
/** Current framework version */
2020
public static function get VERSION():String {
@@ -46,7 +46,7 @@ public class MvcExpress {
4646

4747
/**
4848
* Flag to force sendMessageToAll function throw an error in debug mode.
49-
* For people who don't what this feature in.
49+
* (For people who don't what this feature in.)
5050
*/
5151
static public var disableSendToAllFeature:Boolean = false;
5252

src/org/mvcexpress/core/CommandMap.as

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,9 @@ public class CommandMap {
130130
}
131131

132132
/** function to be called by messenger on needed message type sent */
133-
private function handleCommandExecute(messageType:String, params:Object, remoteModule:String):void {
133+
private function handleCommandExecute(messageType:String, params:Object):void {
134134
var commandList:Vector.<Class>;
135-
if (remoteModule) {
136-
commandList = classRegistry[messageType + ModuleManager.MESSAGE_MODULE_SEPARATOR + remoteModule];
137-
} else {
138-
commandList = classRegistry[messageType];
139-
}
135+
commandList = classRegistry[messageType];
140136

141137
if (commandList) {
142138
for (var i:int = 0; i < commandList.length; i++) {

src/org/mvcexpress/core/FlexMediatorMap.as

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import org.mvcexpress.mvc.Mediator;
1313
* @author Raimundas Banevicius (http://www.mindscriptact.com/)
1414
*/
1515
public class FlexMediatorMap extends MediatorMap {
16+
1617
private var uiComponentClass:Class;
1718

1819
/* CONSTRUCTOR */

src/org/mvcexpress/core/ModuleManager.as

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import org.mvcexpress.MvcExpress;
1212
* @author Raimundas Banevicius (http://www.mindscriptact.com/)
1313
*/
1414
public class ModuleManager {
15-
static public const MESSAGE_MODULE_SEPARATOR:String = "_§_";
1615

1716
/* messenger counter, increased with every new created module */
1817
static private var _moduleId:int;

src/org/mvcexpress/core/interfaces/IProxyMap.as

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ import org.mvcexpress.mvc.Proxy;
77
*/
88
public interface IProxyMap {
99
function getProxy(injectClass:Class, name:String = ""):Proxy;
10-
1110
}
1211
}

src/org/mvcexpress/core/messenger/HandlerVO.as

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ public class HandlerVO {
2020

2121
/** FOR INTERNAL USE ONLY. Variable to store class there handler came from. (for debugging) */
2222
public var handlerClassName:String;
23-
24-
/** FOR INTERNAL USE ONLY. if set - indicates remote module that added this handler . */
25-
public var remoteModule:String;
2623

2724
}
2825
}

src/org/mvcexpress/core/messenger/Messenger.as

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public class Messenger {
131131

132132
// check if handling function handles commands.
133133
if (handlerVo.isExecutable) {
134-
handlerVo.handler(type, params, handlerVo.remoteModule);
134+
handlerVo.handler(type, params);
135135
} else {
136136
CONFIG::debug {
137137
// FOR DEBUG viewing only(mouse over over variables while in debugger mode.)
@@ -204,18 +204,10 @@ public class Messenger {
204204
var messageHandlers:String = "";
205205
for (var i:int = 0; i < msgList.length; i++) {
206206
var handlerVo:HandlerVO = msgList[i];
207-
if (handlerVo.remoteModule) {
208-
if (handlerVo.isExecutable) {
209-
messageHandlers += "[EXECUTES {" + handlerVo.remoteModule + "} :" + ModuleManager.listModuleMessageCommands(handlerVo.remoteModule, key) + "], ";
210-
} else {
211-
messageHandlers += "[{" + handlerVo.remoteModule + "}:" + handlerVo.handlerClassName + "], ";
212-
}
207+
if (handlerVo.isExecutable) {
208+
messageHandlers += "[EXECUTES:" + commandMap.listMessageCommands(key) + "], ";
213209
} else {
214-
if (handlerVo.isExecutable) {
215-
messageHandlers += "[EXECUTES:" + commandMap.listMessageCommands(key) + "], ";
216-
} else {
217-
messageHandlers += "[" + handlerVo.handlerClassName + "], ";
218-
}
210+
messageHandlers += "[" + handlerVo.handlerClassName + "], ";
219211
}
220212
}
221213

0 commit comments

Comments
 (0)