Make 'connected' an attribute.
This commit is contained in:
parent
a6b6ad5e9e
commit
3815d77cc1
@ -386,8 +386,8 @@ This grouping collects API functions related to the XMPP connection.
|
|||||||
connected
|
connected
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
|
||||||
Returns a boolean value (`true` or `false`) depending on whether there is an
|
A boolean attribute (i.e. not a callable) which is set to `true` or `false` depending
|
||||||
established connection.
|
on whether there is an established connection.
|
||||||
|
|
||||||
disconnect
|
disconnect
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
@ -26,9 +26,7 @@
|
|||||||
converse.initialize(settings, callback);
|
converse.initialize(settings, callback);
|
||||||
},
|
},
|
||||||
'connection': {
|
'connection': {
|
||||||
'connected': function () {
|
'connected': converse.connection.connected,
|
||||||
return converse.connection.connected;
|
|
||||||
},
|
|
||||||
'disconnect': function () {
|
'disconnect': function () {
|
||||||
converse.connection.disconnect();
|
converse.connection.disconnect();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user