Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/externals/javelin/lib/Routable.js
12242 views
1
/**
2
* @provides javelin-routable
3
* @requires javelin-install
4
* @javelin
5
*/
6
7
JX.install('Routable', {
8
9
construct : function() {
10
this._id = (JX.Routable._nextID++);
11
},
12
13
properties: {
14
key: null,
15
priority: 1000,
16
type: 'default'
17
},
18
19
events: ['start', 'done'],
20
21
members: {
22
_id: null,
23
24
getID: function() {
25
return this._id;
26
},
27
28
start: function() {
29
this.invoke('start');
30
},
31
32
done: function() {
33
this.invoke('done');
34
}
35
},
36
37
statics: {
38
_nextID: 0
39
}
40
41
});
42
43