librelist archives

« back to archive

connection, events, etc.

connection, events, etc.

From:
Michał Kosyk
Date:
2014-10-21 @ 08:21
Hi,

Where is the converse.*connection*? What other methods and classes has the
"converse"? I would prefer a hint where to look instead of a direct anwser.

Regards,
Michał

Re: [conversejs] connection, events, etc.

From:
Jc Brand
Date:
2014-10-21 @ 11:22
On Tue, Oct 21, 2014 at 10:21:32AM +0200, Michał Kosyk wrote:
>    Hi,
>    Where is the converse.connection? What other methods and classes has the
>    "converse"? I would prefer a hint where to look instead of a direct
>    anwser.

All methods and objects inside the closure have access to the converse
object, usually via the 'this' parameter.

Re: [conversejs] connection, events, etc.

From:
Jc Brand
Date:
2014-10-21 @ 11:23
On Tue, Oct 21, 2014 at 01:22:28PM +0200, JC Brand wrote:
> On Tue, Oct 21, 2014 at 10:21:32AM +0200, Michał Kosyk wrote:
> >    Hi,
> >    Where is the converse.connection? What other methods and classes has the
> >    "converse"? I would prefer a hint where to look instead of a direct
> >    anwser.
> 
> All methods and objects inside the closure have access to the converse
> object, usually via the 'this' parameter.

Not "usually" actually... either via the 'this' parameter or via 'converse'.

Re: [conversejs] connection, events, etc.

From:
Michał Kosyk
Date:
2014-10-21 @ 13:00
I meant where can i find all the classes with the code?

On Tue, Oct 21, 2014 at 1:23 PM, JC Brand <lists@opkode.com> wrote:

> On Tue, Oct 21, 2014 at 01:22:28PM +0200, JC Brand wrote:
> > On Tue, Oct 21, 2014 at 10:21:32AM +0200, Michał Kosyk wrote:
> > >    Hi,
> > >    Where is the converse.connection? What other methods and classes
> has the
> > >    "converse"? I would prefer a hint where to look instead of a direct
> > >    anwser.
> >
> > All methods and objects inside the closure have access to the converse
> > object, usually via the 'this' parameter.
>
> Not "usually" actually... either via the 'this' parameter or via
> 'converse'.
>

Re: [conversejs] connection, events, etc.

From:
Jc Brand
Date:
2014-10-21 @ 13:33
On Tue, Oct 21, 2014 at 03:00:43PM +0200, Michał Kosyk wrote:
>    I meant where can i find all the classes with the code?

In the converse.js file
https://github.com/jcbrand/converse.js/blob/v0.8.3/converse.js


>    On Tue, Oct 21, 2014 at 1:23 PM, JC Brand <[1]lists@opkode.com> wrote:
> 
>      On Tue, Oct 21, 2014 at 01:22:28PM +0200, JC Brand wrote:
>      > On Tue, Oct 21, 2014 at 10:21:32AM +0200, Michał Kosyk wrote:
>      > >    Hi,
>      > >    Where is the converse.connection? What other methods and classes
>      has the
>      > >    "converse"? I would prefer a hint where to look instead of a
>      direct
>      > >    anwser.
>      >
>      > All methods and objects inside the closure have access to the converse
>      > object, usually via the 'this' parameter.
> 
>      Not "usually" actually... either via the 'this' parameter or via
>      'converse'.
> 
> References
> 
>    Visible links
>    1. mailto:lists@opkode.com