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
556d2647
Commit
556d2647
authored
Mar 29, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove "optimization" code no longer used or relevant.
parent
2eb727f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
src/converse-core.js
src/converse-core.js
+3
-11
No files found.
src/converse-core.js
View file @
556d2647
...
...
@@ -1432,18 +1432,10 @@
},
onChatBoxAdded
:
function
(
item
)
{
var
view
=
this
.
get
(
item
.
get
(
'
id
'
));
// Views aren't created here, since the core code doesn't have
// Views aren't created here, since the core code doesn't
// contain any views. Instead, they're created in overrides in
// converse-chatiew.js and/or converse-muc.js
if
(
view
)
{
// This is an optimization. We don't remove older views, so
// when one is available, we reuse it.
delete
view
.
model
;
// Remove ref to old model to help garbage collection
view
.
model
=
item
;
view
.
initialize
();
}
return
view
;
// plugins, such as in converse-chatview.js and converse-muc.js
return
this
.
get
(
item
.
get
(
'
id
'
));
},
removeChat
:
function
(
item
)
{
...
...
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