Skip to content

Commit 28cddc5

Browse files
committed
Spell checked.
1 parent bce000e commit 28cddc5

File tree

13 files changed

+37
-38
lines changed

13 files changed

+37
-38
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="sampleProjects\com\mindScriptAct\proxyHostSample\ProxyHostMain.as" />
81+
<compile path="test\MvcExpressTestRunner.as" />
8282
</compileTargets>
8383
<!-- Paths to exclude from the Project Explorer tree -->
8484
<hiddenPaths>

src/org/mvcexpress/core/CommandMap.as

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class CommandMap {
3939
}
4040

4141
/**
42-
* Map a class to be executed then message with type provied is sent.
42+
* Map a class to be executed then message with provided type is sent.
4343
* @param type Message type for command class to react to.
4444
* @param commandClass Command class that will bi instantiated and executed.
4545
*/
@@ -65,7 +65,7 @@ public class CommandMap {
6565
}
6666

6767
/**
68-
* Unmap a class to be executed then message with type provied is sent.
68+
* Unmap a class to be executed then message with provided type is sent.
6969
* @param type Message type for command class to react to.
7070
* @param commandClass Command class that will bi instantiated and executed.
7171
*/
@@ -129,7 +129,7 @@ public class CommandMap {
129129
//////////////////////////////////////////////
130130
}
131131

132-
/** function to be called by messenger on needed mesage type sent */
132+
/** function to be called by messenger on needed message type sent */
133133
private function handleCommandExecute(messageType:String, params:Object, remoteModule:String):void {
134134
var commandList:Vector.<Class>;
135135
if (remoteModule) {
@@ -179,7 +179,7 @@ public class CommandMap {
179179
}
180180

181181
/**
182-
* Dispose commandMap on module shutDown
182+
* Dispose commandMap on disposeModule()
183183
* @private
184184
*/
185185
pureLegsCore function dispose():void {
@@ -194,7 +194,7 @@ public class CommandMap {
194194
}
195195

196196
/**
197-
* Helper funcitons for error checking
197+
* Helper functions for error checking
198198
* @private
199199
*/
200200
CONFIG::debug

src/org/mvcexpress/core/FlexMediatorMap.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import org.mvcexpress.mvc.Mediator;
88
/**
99
* Handles flex application mediators. </br>
1010
* FlexMediatorMap acts a bit differently from MediatorMap. Flex Mediators are not registered until "creationComplete" event is sent. </br>
11-
* This is needed because Flex view objects acts diferently then simple AS3 display objects - Flex object can be created in next frames. </br>
11+
* This is needed because Flex view objects acts differently then simple AS3 display objects - Flex object can be created in next frames. </br>
1212
* It is common for flex objects to be completed not in the order they were created. Keep this in mind then mediating flex objects.
1313
* @author Raimundas Banevicius (http://www.mindscriptact.com/)
1414
*/

src/org/mvcexpress/core/MediatorMap.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class MediatorMap implements IMediatorMap {
2525
// stores all mediator classes using view class(mediator must mediate) as a key.
2626
protected var classRegistry:Dictionary = new Dictionary(); /* of Class by Class */
2727

28-
// stores all mediators using use view object(midiator is mediating) as a key.
28+
// stores all mediators using use view object(mediator is mediating) as a key.
2929
protected var mediatorRegistry:Dictionary = new Dictionary(); /* of Mediator by Object */
3030

3131
/** CONSTRUCTOR */

src/org/mvcexpress/core/ModuleManager.as

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import org.mvcexpress.mvc.Proxy;
77
import org.mvcexpress.MvcExpress;
88

99
/**
10-
* INTERNAR FRAMEWORK CLASS.
10+
* INTERNAL FRAMEWORK CLASS.
1111
* Creates and manages modules.
1212
* @author Raimundas Banevicius (http://www.mindscriptact.com/)
1313
*/
@@ -174,7 +174,7 @@ public class ModuleManager {
174174

175175
/*
176176
* Finds all proxy objects that are mapped with given className and name in all modules.
177-
* (needed to ensure there are no hosted proxies somethere.)
177+
* (needed to ensure there are no hosted proxies somewhere.)
178178
* @param className
179179
* @param name
180180
* @return

src/org/mvcexpress/core/ProxyMap.as

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class ProxyMap implements IProxyMap {
7171
use namespace pureLegsCore;
7272
if (proxyObject.hostModuleName) {
7373
if (proxyObject.hostModuleName != moduleName) {
74-
throw Error("Proxy cant be hosted in one module(" + proxyObject.hostModuleName + ") and then mappend in another(" + moduleName + "). > proxyObject : " + proxyObject + ", injectClass : " + injectClass + ", name : " + name);
74+
throw Error("Proxy cant be hosted in one module(" + proxyObject.hostModuleName + ") and then mapped in another(" + moduleName + "). > proxyObject : " + proxyObject + ", injectClass : " + injectClass + ", name : " + name);
7575
}
7676
}
7777
proxyObject.messenger = messenger;
@@ -125,9 +125,9 @@ public class ProxyMap implements IProxyMap {
125125
}
126126

127127
/**
128-
* Get mapped proxy. This is needed to get proxy manualy instead of inject it automaticaly. <br>
129-
* You might wont to get proxy manualy then your proxy has dynamic name. <br>
130-
* Also you might want to get proxy manualy if your proxy is needed only in rare cases or only for short time.
128+
* Get mapped proxy. This is needed to get proxy manually instead of inject it automatically. <br>
129+
* You might wont to get proxy manually then your proxy has dynamic name. <br>
130+
* Also you might want to get proxy manually if your proxy is needed only in rare cases or only for short time.
131131
* (for instance - you need it only in onRegister() function.)
132132
* @param injectClass Optional class to use for injection, if null proxyObject class is used. It is helpful if you want to map proxy interface or subclass.
133133
* @param name Optional name if you need more then one proxy instance of same class.
@@ -250,7 +250,7 @@ public class ProxyMap implements IProxyMap {
250250

251251
// get rules. (by now rules for this class must be created.)
252252
var rules:Vector.<InjectRuleVO> = ProxyMap.classInjectRules[pendingInjection.signatureClass];
253-
var pendingInject:Object = pendingInjection.pendingObject
253+
var pendingInject:Object = pendingInjection.pendingObject;
254254
for (var j:int = 0; j < rules.length; j++) {
255255
if (rules[j].injectClassAndName == injectClassAndName) {
256256

@@ -290,12 +290,12 @@ public class ProxyMap implements IProxyMap {
290290

291291
for (var i:int = 0; i < factoryNodes.length(); i++) {
292292
var node:XML = factoryNodes[i];
293-
var nodeNome:String = node.name();
294-
if (nodeNome == "variable" || nodeNome == "accessor") {
293+
var nodeName:String = node.name();
294+
if (nodeName == "variable" || nodeName == "accessor") {
295295
var metadataList:XMLList = node.metadata;
296296
for (var j:int = 0; j < metadataList.length(); j++) {
297-
nodeNome = metadataList[j].@name;
298-
if (nodeNome == "Inject") {
297+
nodeName = metadataList[j].@name;
298+
if (nodeName == "Inject") {
299299
var injectName:String = "";
300300
var args:XMLList = metadataList[j].arg;
301301
for (var k:int = 0; k < args.length(); k++) {
@@ -316,8 +316,8 @@ public class ProxyMap implements IProxyMap {
316316

317317
/**
318318
* INTERNAL FRAMEWORK FUNCTION. Returns proxy mapped with classname and name.
319-
* @param className
320-
* @param name
319+
* @param className proxy class to search for
320+
* @param name proxy name to search for
321321
* @private
322322
*/
323323
pureLegsCore function getMappedProxy(className:String, name:String):Proxy {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package org.mvcexpress.core.interfaces {
22
import org.mvcexpress.mvc.Proxy;
33

44
/**
5-
* Interface to get proxy objects inside your code insted of automatic injection.
5+
* Interface to get proxy objects inside your code instead of automatic injection.
66
* @author Raimundas Banevicius (http://www.mindscriptact.com/)
77
*/
88
public interface IProxyMap {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class HandlerVO {
1515
// (HandlerVO is not removed instantly, only marked for removal. It is removed only with next message call of needed type, this message not always comes. :\ )
1616
public var handler:Function;
1717

18-
/** FOR INTERNAL USE ONLY. shows if message is handled by Cammand. */
18+
/** FOR INTERNAL USE ONLY. shows if message is handled by Command. */
1919
public var isExecutable:Boolean;
2020

2121
/** FOR INTERNAL USE ONLY. Variable to store class there handler came from. (for debugging) */

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class Messenger {
8383
* @param type message type that handler had to react
8484
* @param handler function called on sent message.
8585
*/
86-
public function removeHandler(type:String, handler:Function /*, remoteModuleName:String = null*/):void {
86+
public function removeHandler(type:String, handler:Function):void {
8787
// debug this action
8888
CONFIG::debug {
8989
if (MvcExpress.debugFunction != null) {
@@ -104,7 +104,6 @@ public class Messenger {
104104
* @param type message type to find needed handlers
105105
* @param params parameter object that will be sent to all handler functions as single parameter.
106106
*/
107-
// TODO : consider removing targetAllModules
108107
public function send(type:String, params:Object = null):void {
109108
use namespace pureLegsCore;
110109
// debug this action
@@ -135,7 +134,7 @@ public class Messenger {
135134
handlerVo.handler(type, params, handlerVo.remoteModule);
136135
} else {
137136
CONFIG::debug {
138-
// FOR DEBUG viewing only(mouse over over variables while in bedugger mode.)
137+
// FOR DEBUG viewing only(mouse over over variables while in debugger mode.)
139138
/* Failed message type: */
140139
type
141140
/* Failed handler class: */

src/org/mvcexpress/modules/ModuleCore.as

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.mvcexpress.core.ProxyMap;
1010
/**
1111
* Core Module class. Used if you don't want your module be display object.
1212
* <p>
13-
* It inits framework and lets you set up your application. (or execute Cammands that will do it.)
13+
* It starts framework and lets you set up your application. (or execute Commands that will do it.)
1414
* Also you can create modular application by having more then one module.
1515
* </p>
1616
* @author Raimundas Banevicius (http://www.mindscriptact.com/)
@@ -68,7 +68,7 @@ public class ModuleCore {
6868

6969
/**
7070
* Function to get rid of module.
71-
* - All module cammands are unmapped.
71+
* - All module commands are unmapped.
7272
* - All module mediators are unmediated
7373
* - All module proxies are unmapped
7474
* - All internals are nulled.

0 commit comments

Comments
 (0)