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
6cd9d2e8
Commit
6cd9d2e8
authored
Jun 07, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename `_tearDown` to `tearDown` and rebuild
parent
2cdd46f6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
31 deletions
+24
-31
dist/converse.js
dist/converse.js
+13
-20
src/converse-controlbox.js
src/converse-controlbox.js
+2
-2
src/converse-core.js
src/converse-core.js
+5
-5
src/converse-muc.js
src/converse-muc.js
+2
-2
src/converse-rosterview.js
src/converse-rosterview.js
+2
-2
No files found.
dist/converse.js
View file @
6cd9d2e8
...
...
@@ -62089,13 +62089,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
// Overrides mentioned here will be picked up by converse.js's
// plugin architecture they will replace existing methods on the
// relevant objects or classes.
disconnect: function disconnect() {
const _converse = this.__super__._converse;
_converse.chatboxviews.closeAllChatBoxes();
return this.__super__.disconnect.apply(this, arguments);
},
initStatus: function initStatus(reconnecting) {
const _converse = this.__super__._converse;
...
...
@@ -62966,7 +62959,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
_converse.emit('chatBoxesInitialized');
});
_converse.api.listen.on('
logout
', () => {
_converse.api.listen.on('
clearSession
', () => {
_converse.chatboxviews.closeAllChatBoxes();
});
...
...
@@ -64358,8 +64351,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
// relevant objects or classes.
//
// New functions which don't exist yet can also be added.
_
tearDown() {
this.__super__.
_
tearDown.apply(this, arguments);
tearDown() {
this.__super__.tearDown.apply(this, arguments);
if (this.rosterview) {
// Removes roster groups
...
...
@@ -65225,7 +65218,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
_converse.stopListening();
_converse.
_
tearDown();
_converse.tearDown();
}
if ('onpagehide' in window) {
...
...
@@ -65408,7 +65401,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
_converse.connection.reconnecting = true;
_converse.
_
tearDown();
_converse.tearDown();
_converse.logIn(null, true);
}, 3000, {
...
...
@@ -65422,7 +65415,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
_converse.connection.reset();
_converse.
_
tearDown();
_converse.tearDown();
_converse.emit('disconnected');
};
...
...
@@ -65614,7 +65607,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
if (!_.isUndefined(_converse.connection)) {
_converse.connection.disconnect();
} else {
_converse.
_
tearDown();
_converse.tearDown();
} // Recreate all the promises
...
...
@@ -66061,7 +66054,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
_converse.emit('connectionInitialized');
};
this.
_
tearDown = function () {
this.tearDown = function () {
/* Remove those views which are only allowed with a valid
* connection.
*/
...
...
@@ -71213,7 +71206,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
// relevant objects or classes.
//
// New functions which don't exist yet can also be added.
_
tearDown() {
tearDown() {
const rooms = this.chatboxes.where({
'type': converse.CHATROOMS_TYPE
});
...
...
@@ -71224,7 +71217,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
});
});
this.__super__.
_
tearDown.call(this, arguments);
this.__super__.tearDown.call(this, arguments);
},
ChatBoxes: {
...
...
@@ -75525,11 +75518,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
this.__super__.afterReconnected.apply(this, arguments);
},
_
tearDown() {
tearDown() {
/* Remove the rosterview when tearing down. It gets created
* anew when reconnecting or logging in.
*/
this.__super__.
_
tearDown.apply(this, arguments);
this.__super__.tearDown.apply(this, arguments);
if (!_.isUndefined(this.rosterview)) {
this.rosterview.remove();
...
...
@@ -76851,7 +76844,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
_converse.vcards.fetch();
};
_converse.api.listen.on('
connect
ionInitialized', _converse.initVCardCollection);
_converse.api.listen.on('
sess
ionInitialized', _converse.initVCardCollection);
_converse.on('addClientFeatures', () => {
_converse.api.disco.own.features.add(Strophe.NS.VCARD);
src/converse-controlbox.js
View file @
6cd9d2e8
...
...
@@ -91,8 +91,8 @@
//
// New functions which don't exist yet can also be added.
_
tearDown
()
{
this
.
__super__
.
_
tearDown
.
apply
(
this
,
arguments
);
tearDown
()
{
this
.
__super__
.
tearDown
.
apply
(
this
,
arguments
);
if
(
this
.
rosterview
)
{
// Removes roster groups
this
.
rosterview
.
model
.
off
().
reset
();
...
...
src/converse-core.js
View file @
6cd9d2e8
...
...
@@ -315,7 +315,7 @@
_converse
.
connection
.
reset
();
_converse
.
off
();
_converse
.
stopListening
();
_converse
.
_
tearDown
();
_converse
.
tearDown
();
}
if
(
'
onpagehide
'
in
window
)
{
...
...
@@ -478,7 +478,7 @@
__
(
'
The connection has dropped, attempting to reconnect.
'
)
);
_converse
.
connection
.
reconnecting
=
true
;
_converse
.
_
tearDown
();
_converse
.
tearDown
();
_converse
.
logIn
(
null
,
true
);
},
3000
,
{
'
leading
'
:
true
});
...
...
@@ -486,7 +486,7 @@
_converse
.
log
(
'
DISCONNECTED
'
);
delete
_converse
.
connection
.
reconnecting
;
_converse
.
connection
.
reset
();
_converse
.
_
tearDown
();
_converse
.
tearDown
();
_converse
.
emit
(
'
disconnected
'
);
};
...
...
@@ -656,7 +656,7 @@
if
(
!
_
.
isUndefined
(
_converse
.
connection
))
{
_converse
.
connection
.
disconnect
();
}
else
{
_converse
.
_
tearDown
();
_converse
.
tearDown
();
}
// Recreate all the promises
_
.
each
(
_
.
keys
(
_converse
.
promises
),
addPromise
);
...
...
@@ -1075,7 +1075,7 @@
};
this
.
_
tearDown
=
function
()
{
this
.
tearDown
=
function
()
{
/* Remove those views which are only allowed with a valid
* connection.
*/
...
...
src/converse-muc.js
View file @
6cd9d2e8
...
...
@@ -76,12 +76,12 @@
//
// New functions which don't exist yet can also be added.
_
tearDown
()
{
tearDown
()
{
const
rooms
=
this
.
chatboxes
.
where
({
'
type
'
:
converse
.
CHATROOMS_TYPE
});
_
.
each
(
rooms
,
function
(
room
)
{
u
.
safeSave
(
room
,
{
'
connection_status
'
:
converse
.
ROOMSTATUS
.
DISCONNECTED
});
});
this
.
__super__
.
_
tearDown
.
call
(
this
,
arguments
);
this
.
__super__
.
tearDown
.
call
(
this
,
arguments
);
},
ChatBoxes
:
{
...
...
src/converse-rosterview.js
View file @
6cd9d2e8
...
...
@@ -49,11 +49,11 @@
this
.
__super__
.
afterReconnected
.
apply
(
this
,
arguments
);
},
_
tearDown
()
{
tearDown
()
{
/* Remove the rosterview when tearing down. It gets created
* anew when reconnecting or logging in.
*/
this
.
__super__
.
_
tearDown
.
apply
(
this
,
arguments
);
this
.
__super__
.
tearDown
.
apply
(
this
,
arguments
);
if
(
!
_
.
isUndefined
(
this
.
rosterview
))
{
this
.
rosterview
.
remove
();
}
...
...
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