Commit 3815d77c authored by JC Brand's avatar JC Brand

Make 'connected' an attribute.

parent a6b6ad5e
......@@ -386,8 +386,8 @@ This grouping collects API functions related to the XMPP connection.
connected
~~~~~~~~~
Returns a boolean value (`true` or `false`) depending on whether there is an
established connection.
A boolean attribute (i.e. not a callable) which is set to `true` or `false` depending
on whether there is an established connection.
disconnect
~~~~~~~~~~
......
......@@ -26,9 +26,7 @@
converse.initialize(settings, callback);
},
'connection': {
'connected': function () {
return converse.connection.connected;
},
'connected': converse.connection.connected,
'disconnect': function () {
converse.connection.disconnect();
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment