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
216606ae
Commit
216606ae
authored
Dec 19, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some cleanup and remove unused file.
parent
3223fb8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
31 deletions
+7
-31
src/converse-rosterview.js
src/converse-rosterview.js
+7
-6
src/jquery.eventemitter.js
src/jquery.eventemitter.js
+0
-25
No files found.
src/converse-rosterview.js
View file @
216606ae
...
...
@@ -436,7 +436,7 @@
return
this
;
},
positionFetchedGroups
:
function
(
model
,
resp
,
options
)
{
positionFetchedGroups
:
function
()
{
/* Instead of throwing an add event for each group
* fetched, we wait until they're all fetched and then
* we position them.
...
...
@@ -445,19 +445,20 @@
* positioned aren't already in inserted into the
* roster DOM element.
*/
var
that
=
this
;
this
.
model
.
sort
();
this
.
model
.
each
(
function
(
group
,
idx
)
{
var
view
=
th
is
.
get
(
group
.
get
(
'
name
'
));
var
view
=
th
at
.
get
(
group
.
get
(
'
name
'
));
if
(
!
view
)
{
view
=
new
converse
.
RosterGroupView
({
model
:
group
});
th
is
.
add
(
group
.
get
(
'
name
'
),
view
.
render
());
th
at
.
add
(
group
.
get
(
'
name
'
),
view
.
render
());
}
if
(
idx
===
0
)
{
th
is
.
$roster
.
append
(
view
.
$el
);
th
at
.
$roster
.
append
(
view
.
$el
);
}
else
{
th
is
.
appendGroup
(
view
);
th
at
.
appendGroup
(
view
);
}
}
.
bind
(
this
)
);
});
},
positionGroup
:
function
(
view
)
{
...
...
src/jquery.eventemitter.js
deleted
100644 → 0
View file @
3223fb8c
/*global $ */
(
function
(
root
,
factory
)
{
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
define
(
"
converse
"
,
[
"
jquery
"
],
function
(
$
)
{
return
factory
(
$
);
});
}
else
{
factory
(
$
);
}
}(
this
,
function
(
$
)
{
$
.
eventEmitter
=
{
emit
:
function
(
evt
,
data
)
{
$
(
this
).
trigger
(
evt
,
data
);
},
once
:
function
(
evt
,
handler
)
{
$
(
this
).
one
(
evt
,
handler
);
},
on
:
function
(
evt
,
handler
)
{
$
(
this
).
bind
(
evt
,
handler
);
},
off
:
function
(
evt
,
handler
)
{
$
(
this
).
unbind
(
evt
,
handler
);
}
};
}));
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