new context()
- Copyright:
- (c) Copyright 2013 - 2016 AV Digital Media Ltd. All Rights Reserved. No unauthorized copying, distribution or modification to this code in whole or in part is permitted without the express permission of AV Digital Media Ltd (UK).
This is the main command for the mvc framework, that which all other commands extend
Members
(static) this.args
Properties:
Name | Type | Description |
---|---|---|
args |
Optional arguments for modular contexts, this is so that they can be initialized by other context objects by passing required parameters
Methods
(static) construct()
Override the default construct function and set any custom behaviour
(static) destroy()
Destroy the context and all references
(static) map(Obj, evnt, {number})
Map function to map an object to the notifier object, all objects, Models, Views, Command and Modules must be mapped to the notification object so that they can be found and referenced by the application command object
Parameters:
Name | Type | Description |
---|---|---|
Obj |
Object | The object to map |
evnt |
Object | The object to evnt |
{number} |
String | ref - Either a string name reference or instance id reference |
Returns:
The instance mapped
(private, static) map(Obj, evnt, {number})
Map function to map an object to the notifier object, all objects, Models, Views, Command and Modules must be mapped to the notification object so that they can be found and referenced by the application command object
Parameters:
Name | Type | Description |
---|---|---|
Obj |
Object | The object to map |
evnt |
Object | The object to evnt |
{number} |
String | ref - Either a string name reference or instance id reference |
Returns:
The instance mapped
(static) mapCommands()
Override the map commands method
(static) mapModels()
Override the map models method
(static) mapServices()
Override the map services method
(static) mapViews()
Override the map views method
(static) startup()
Context startup method to init models, views and commands
(static) unmap()
Remove a mapping from the notification object
(static) unmap(name)
Remove an object mapping from the notification object
Parameters:
Name | Type | Description |
---|---|---|
name |
Object | The object to map |