Browse Source

delete unnecessary check in a loop in processDMsnippet()

master
Simon Grim 10 years ago
parent
commit
7082d0aedd
  1. 2
      js/twister_directmsg.js

2
js/twister_directmsg.js

@ -20,7 +20,6 @@ function processDMsnippet(dmUsers, dmThreadList) { @@ -20,7 +20,6 @@ function processDMsnippet(dmUsers, dmThreadList) {
dmThreadList.empty();
for (var u in dmUsers) {
if (dmUsers[u]) {
// convert snipped to html and add it to date-sorted list
var dmItem = dmDataToSnippetItem(dmUsers[u][0], u);
var timeDmItem = parseInt(dmItem.attr('data-time'));
@ -37,7 +36,6 @@ function processDMsnippet(dmUsers, dmThreadList) { @@ -37,7 +36,6 @@ function processDMsnippet(dmUsers, dmThreadList) {
if (j === existingItems.length)
dmThreadList.append(dmItem);
}
}
$.MAL.dmThreadListLoaded();
}

Loading…
Cancel
Save