-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplicationFacade.js
More file actions
48 lines (41 loc) · 999 Bytes
/
Copy pathApplicationFacade.js
File metadata and controls
48 lines (41 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* @author Saad Shams :: sshams@live.com
* Copy or reuse is prohibited.
* */
puremvc.define(
{
name: 'ApplicationFacade',
parent: puremvc.Facade
},
{
startup: function() {
if(!this.initialized) {
this.initialized = true;
this.registerCommand(ApplicationFacade.STARTUP, controller.commands.StartupCommand);
this.sendNotification(ApplicationFacade.STARTUP);
}
}
},
{
getInstance: function(multitonKey) {
var instanceMap = puremvc.Facade.instanceMap;
instance =instanceMap[multitonKey];
if(instance) {
return instance;
}
return instanceMap[multitonKey] = new ApplicationFacade(multitonKey);
},
DEBUG: false,
NAME: "BeFirst",
STARTUP: "startup",
ADD: "add",
PICS: "pics",
CONFIRMATION: "confirmation",
YES: "yes",
NO: "no",
DONATED: "donated",
employee_id: null,
participation: 0,
totalPics:0
}
);