Merge pull request #117 from polyphenolic/master

Revert commit 7eec859 ("Do not remove stuff from lists")
This commit is contained in:
hamza zia 2014-10-25 11:14:21 +08:00
commit 76ef52ccf7

11
js/ctrls/main.js Normal file → Executable file
View File

@ -95,6 +95,17 @@ function(
d.followedFrom = null;
}
rpc.once(method, [d.gid], cb);
var lists = [scope.active, scope.waiting, scope.stopped], ind = -1, i;
for (var i = 0; i < lists.length; ++i) {
var list = lists[i];
var idx = list.indexOf(d);
if (idx < 0) {
continue;
}
list.splice(idx, 1);
return;
}
}, 0);
}