The way I understand it, the function will only create a new pipe (and fire a 
uniPipe event) if the pipe you're trying to "get" doesn't exist in "this.pipes" 
?




Envoyé de mon iPad

Le 2012-10-05 à 16:12, UTAN <[email protected]> a écrit :

> Yeah , I am using session but even so the pipe is changed
> automatically when you call getPipe , I am using mootools framework
> and seen the code itself
> 
> getPipe: function(pubid) {
>        var pipe = this.pipes.get(pubid);
>        if (!pipe) {
>            pipe = this.users.get(pubid);
>            if (pipe) pipe = this.newPipe('uni', {'pipe': pipe});
>        }
>        return pipe;
>    },
> 
> Then the uniPipe is fire if you follow you see in PipeSingle.js
> 
> 
>    initialize: function(core, options){
>        this.parent(core, options);
>        this.type = 'uni';
>        this.ape.fireEvent('uniPipeCreate',[this, options]);
>    }
> 
> So i've traced it to that point..
> 
> On Oct 5, 1:02 pm, Louis Charette <[email protected]> wrote:
>> I never experienced something like this, but I'm not using session. Maybe it 
>> come from the sessions system?
>> 
>>   - Louis
>> 
>> Envoyé de mon iPad
>> 
>> Le 2012-10-05 à 15:57, UTAN <[email protected]> a écrit :
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Had to do a dirty job,
>> 
>>> Since I have to use getPipe(); because i need the pipe object , and
>>> this switch automatically to this pipe, had to save the current Pipe
>>> in a var and when I've switched to the new pipe reverted back to
>>> original pipe that was one, it's unseen to naked eye when the script
>>> switch from one to another..
>>> but its ugly programatically  and redundant..
>> 
>>>  any thoughts if any?
>> 
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "APE Project" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/ape-project?hl=en
>>> ---
>>> APE Project (Ajax Push Engine)
>>> Official website :http://www.ape-project.org/
>>> Git Hub :http://github.com/APE-Project/
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to