mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-15 18:10:53 +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
|
||
|
}
|
||
|
|
||
|
});
|