Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
a30cf931
Commit
a30cf931
authored
Dec 19, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split API into public and private (plugin only) parts.
parent
aacee2eb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
24 deletions
+1
-24
docs/source/developer_api.rst
docs/source/developer_api.rst
+0
-19
spec/converse.js
spec/converse.js
+0
-2
spec/disco.js
spec/disco.js
+1
-3
No files found.
docs/source/developer_api.rst
View file @
a30cf931
...
...
@@ -670,9 +670,7 @@ To open a single chat box, provide the JID of the contact:
converse.plugins.add('myplugin', {
initialize: function () {
this._converse.chats.open('buddy@example.com')
}
});
...
...
@@ -682,9 +680,7 @@ To return an array of chat boxes, provide an array of JIDs:
converse.plugins.add('myplugin', {
initialize: function () {
this._converse.chats.open(['buddy1@example.com', 'buddy2@example.com'])
}
});
...
...
@@ -743,7 +739,6 @@ It takes 3 parameters:
converse.plugins.add('myplugin', {
initialize: function () {
var nick = 'dread-pirate-roberts';
var create_if_not_found = true;
this._converse.rooms.open(
...
...
@@ -751,7 +746,6 @@ It takes 3 parameters:
{'nick': nick},
create_if_not_found
)
}
});
...
...
@@ -957,11 +951,7 @@ grouping:
.. code-block:: javascript
<<<<<<< 3699a0af5c53a1ba4f8fd030421e4f976368b404
_converse.listen.on('message', function (messageXML) { ... });
=======
converse.listen.on('message', function (messageXML) { ... });
>>>>>>> Replace jQuery-based event emitter with Backbone.Events
* **once(eventName, callback, [context])**:
...
...
@@ -978,11 +968,7 @@ grouping:
.. code-block:: javascript
<<<<<<< 3699a0af5c53a1ba4f8fd030421e4f976368b404
_converse.listen.once('message', function (messageXML) { ... });
=======
converse.listen.once('message', function (messageXML) { ... });
>>>>>>> Replace jQuery-based event emitter with Backbone.Events
* **not(eventName, callback)**
...
...
@@ -997,9 +983,4 @@ grouping:
.. code-block:: javascript
<<<<<<< 3699a0af5c53a1ba4f8fd030421e4f976368b404
_converse.listen.not('message', function (messageXML) { ... });
=======
converse.listen.not('message', function (messageXML) { ... });
>>>>>>> Replace jQuery-based event emitter with Backbone.Events
spec/converse.js
View file @
a30cf931
...
...
@@ -239,11 +239,9 @@
// Test on chat that doesn't exist.
expect
(
_converse
.
api
.
chats
.
get
(
'
non-existing@jabber.org
'
)).
toBeFalsy
();
var
jid
=
mock
.
cur_names
[
0
].
replace
(
/ /g
,
'
.
'
).
toLowerCase
()
+
'
@localhost
'
;
// Test on chat that's not open
var
box
=
_converse
.
api
.
chats
.
get
(
jid
);
expect
(
typeof
box
===
'
undefined
'
).
toBeTruthy
();
var
chatboxview
=
_converse
.
chatboxviews
.
get
(
jid
);
// Test for single JID
test_utils
.
openChatBoxFor
(
_converse
,
jid
);
...
...
spec/disco.js
View file @
a30cf931
...
...
@@ -9,9 +9,7 @@
var
Strophe
=
converse
.
env
.
Strophe
;
describe
(
"
Service Discovery
"
,
function
()
{
describe
(
"
Whenever _converse.js discovers a new server feature
"
,
function
()
{
describe
(
"
Whenever converse.js discovers a new server feature
"
,
function
()
{
it
(
"
emits the serviceDiscovered event
"
,
mock
.
initConverse
(
function
(
_converse
)
{
spyOn
(
_converse
,
'
emit
'
);
_converse
.
features
.
create
({
'
var
'
:
Strophe
.
NS
.
MAM
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment