mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
more tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9fbe7512a4
commit
3fb1bce368
@ -62,23 +62,17 @@ var PeerActions = actions.Actions({
|
|||||||
return !!this.getActionAttr(name, '__peer__') }],
|
return !!this.getActionAttr(name, '__peer__') }],
|
||||||
|
|
||||||
//
|
//
|
||||||
// The overloading action should connect on the pre-stage...
|
// NOTE: it is the responsibility of the overloading action to trigger
|
||||||
|
// the appropriate events...
|
||||||
//
|
//
|
||||||
// XXX should this be sync or async???
|
// XXX should this be sync or async???
|
||||||
// XXX this should create or connect to a peer depending on protocol...
|
// XXX this should create or connect to a peer depending on protocol...
|
||||||
// XXX the events should get called on the peer too -- who is
|
// XXX the events should get called on the peer too -- who is
|
||||||
// responsible for this???
|
// responsible for this???
|
||||||
peerConnect: ['- Peer/',
|
peerConnect: ['- Peer/',
|
||||||
function(id, options){
|
function(id, options){ return id }],
|
||||||
id in this.__peers
|
|
||||||
&& this.peerConnected(id)
|
|
||||||
return id
|
|
||||||
}],
|
|
||||||
peerDisconnect: ['- Peer/',
|
peerDisconnect: ['- Peer/',
|
||||||
function(id){
|
function(id){ }],
|
||||||
!(id in this.__peers)
|
|
||||||
&& this.peerDisconnected(id)
|
|
||||||
}],
|
|
||||||
|
|
||||||
// event...
|
// event...
|
||||||
peerConnected: ['- Peer/',
|
peerConnected: ['- Peer/',
|
||||||
@ -154,6 +148,16 @@ module.Peer = core.ImageGridFeatures.Feature({
|
|||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
var ChildProcessPeerActions = actions.Actions({
|
var ChildProcessPeerActions = actions.Actions({
|
||||||
|
|
||||||
|
peerConnect: ['- Peer/',
|
||||||
|
function(id, options){
|
||||||
|
// XXX
|
||||||
|
}],
|
||||||
|
peerDisconnect: ['- Peer/',
|
||||||
|
function(id){
|
||||||
|
// XXX
|
||||||
|
}],
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user