mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +01:00
42 lines
529 B
JavaScript
42 lines
529 B
JavaScript
|
/**
|
||
|
* @provides javelin-routable
|
||
|
* @requires javelin-install
|
||
|
* @javelin
|
||
|
*/
|
||
|
|
||
|
JX.install('Routable', {
|
||
|
|
||
|
construct : function() {
|
||
|
this._id = (JX.Routable._nextID++);
|
||
|
},
|
||
|
|
||
|
properties: {
|
||
|
key: null,
|
||
|
priority: 1000,
|
||
|
type: 'default'
|
||
|
},
|
||
|
|
||
|
events: ['start', 'done'],
|
||
|
|
||
|
members: {
|
||
|
_id: null,
|
||
|
|
||
|
getID: function() {
|
||
|
return this._id;
|
||
|
},
|
||
|
|
||
|
start: function() {
|
||
|
this.invoke('start');
|
||
|
},
|
||
|
|
||
|
done: function() {
|
||
|
this.invoke('done');
|
||
|
}
|
||
|
},
|
||
|
|
||
|
statics: {
|
||
|
_nextID: 0
|
||
|
}
|
||
|
|
||
|
});
|