Skip to content

Commit 5ca8990

Browse files
committed
Important fix : command instances weren't initialized with their notifier (needs a dedicated unit test).
1 parent 83ca525 commit 5ca8990

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/org/puremvc/typescript/multicore/patterns/command/MacroCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module puremvc
5353
* Initialize the <code>MacroCommand</code>.
5454
*
5555
* In your subclass, override this method to initialize the <code>MacroCommand</code>'s
56-
* <i>SubCommand</i> list with <code>ICommand</code> class references like this:
56+
* <i>subCommand</i> list with <code>ICommand</code> class references like this:
5757
*
5858
* <pre>
5959
* // Initialize MyMacroCommand
@@ -111,6 +111,7 @@ module puremvc
111111
*/
112112
var commandClassRef:any = subCommands[i];
113113
var commandInstance:ICommand = <ICommand> /*</>*/ new commandClassRef();
114+
commandInstance.initializeNotifier( this.multitonKey );
114115
commandInstance.execute( notification );
115116
}
116117

0 commit comments

Comments
 (0)