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
9a8975f5
Commit
9a8975f5
authored
Dec 15, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add two more emitted events. Updates #48
parent
d95610cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
converse.js
converse.js
+2
-0
docs/source/index.rst
docs/source/index.rst
+13
-0
No files found.
converse.js
View file @
9a8975f5
...
...
@@ -431,6 +431,7 @@
}
}
},
this
));
converse
.
emit
(
'
onReady
'
);
};
// Backbone Models and Views
...
...
@@ -3406,6 +3407,7 @@
this
.
onConnected
();
}
if
(
this
.
show_controlbox_by_default
)
{
this
.
controlboxtoggle
.
showControlBox
();
}
converse
.
emit
(
'
onInitialized
'
);
};
return
{
'
initialize
'
:
function
(
settings
,
callback
)
{
...
...
docs/source/index.rst
View file @
9a8975f5
...
...
@@ -593,6 +593,19 @@ Event Types
Here are the different events that are emitted:
* **onInitialized**
``converse.on('onMessage', function () { ... });``
Triggered once converse.js has been initialized.
* **onReady**
Triggered after a connection has been established and converse.js has
got all its ducks in a row.
``converse.on('onReady', function (message) { ... });``
* **onMessage**
``converse.on('onMessage', function (message) { ... });``
...
...
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