Small oversights
This commit is contained in:
parent
69288c7ebe
commit
c32390c437
@ -2785,7 +2785,6 @@
|
|||||||
sortOnTop: function(match) {
|
sortOnTop: function(match) {
|
||||||
var i, offset, threadRoot, _i, _len, _ref;
|
var i, offset, threadRoot, _i, _len, _ref;
|
||||||
offset = 0;
|
offset = 0;
|
||||||
i = 0;
|
|
||||||
_ref = Index.sortedNodes;
|
_ref = Index.sortedNodes;
|
||||||
for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) {
|
for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) {
|
||||||
threadRoot = _ref[i];
|
threadRoot = _ref[i];
|
||||||
|
|||||||
@ -2795,7 +2795,6 @@
|
|||||||
sortOnTop: function(match) {
|
sortOnTop: function(match) {
|
||||||
var i, offset, threadRoot, _i, _len, _ref;
|
var i, offset, threadRoot, _i, _len, _ref;
|
||||||
offset = 0;
|
offset = 0;
|
||||||
i = 0;
|
|
||||||
_ref = Index.sortedNodes;
|
_ref = Index.sortedNodes;
|
||||||
for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) {
|
for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) {
|
||||||
threadRoot = _ref[i];
|
threadRoot = _ref[i];
|
||||||
|
|||||||
@ -415,10 +415,8 @@ Index =
|
|||||||
|
|
||||||
sortOnTop: (match) ->
|
sortOnTop: (match) ->
|
||||||
offset = 0
|
offset = 0
|
||||||
i = 0
|
for threadRoot, i in Index.sortedNodes when match Get.threadFromRoot threadRoot
|
||||||
for threadRoot, i in Index.sortedNodes
|
Index.sortedNodes.splice offset++, 0, Index.sortedNodes.splice(i, 1)[0]
|
||||||
if match Get.threadFromRoot threadRoot
|
|
||||||
Index.sortedNodes.splice offset++, 0, Index.sortedNodes.splice(i, 1)[0]
|
|
||||||
return
|
return
|
||||||
|
|
||||||
buildIndex: ->
|
buildIndex: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user