===pipe1========= teemerge ---------------
|
======pipe2==========|
To get something like above you could either do
pipe1.connect(teemerge);
pipe2.connect(teemerge);
OR equivalently
teemerge.connectInput(pipe1);
teemerge.connectInput(pipe2);
disconnecting pipes
lets say we had:
======pipe1========pipe2==========pipe3=========
doing:
pipe1.disconnect().disconnect().disconnect();
would result in:
=====pipe1 pipe pipe3
because each disconnect returns the disconnected pipe
===teesplit==============pipe1=====
|
|==========pipe2=====
|
|==========pipe3=====
in this case
teesplit.disconnect();
teesplit.disconnect();
teesplit.disconnect();
removes all 3 pipes in the reverse order that you connected them.
there is no built in capability to remove a pipe of your choosing at the moment(something you need if your gonna be doing a lot of module building!!).
check here to see how someone implemented it themself:
http://forums.puremvc.org/index.php?action=printpage;topic=508.0
No comments:
Post a Comment