Skip to content

Commit 7b27ce6

Browse files
author
Cliff Hall
committed
added code to call setMultitonKey:
* on Commands just before execute is called (since commands are dynamically created) * on Mediators and Proxies just when registered
1 parent e145c8f commit 7b27ce6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/org/puremvc/as3/multicore/core/Controller.as

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ package org.puremvc.as3.multicore.core
114114
if ( commandClassRef == null ) return;
115115

116116
var commandInstance : ICommand = new commandClassRef();
117+
commandInstance.setMultitonKey( multitonKey );
117118
commandInstance.execute( note );
118119
}
119120

src/org/puremvc/as3/multicore/core/Model.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ package org.puremvc.as3.multicore.core
8989
*/
9090
public function registerProxy( proxy:IProxy ) : void
9191
{
92-
92+
proxy.setMultitonKey( multitonKey );
9393
proxyMap[ proxy.getProxyName() ] = proxy;
9494
}
9595

src/org/puremvc/as3/multicore/core/View.as

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ package org.puremvc.as3.multicore.core
135135
*/
136136
public function registerMediator( mediator:IMediator ) : void
137137
{
138+
139+
mediator.setMultitonKey( multitonKey );
140+
138141
// Register the Mediator for retrieval by name
139142
mediatorMap[ mediator.getMediatorName() ] = mediator;
140143

0 commit comments

Comments
 (0)