Fix an oopsie
This commit is contained in:
parent
7c28da181b
commit
5ec17d3477
@ -1877,14 +1877,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
SimpleDict.prototype.forEach = function(fn) {
|
SimpleDict.prototype.forEach = function(fn) {
|
||||||
var key, _i, _len, _ref, _results;
|
var key, _i, _len, _ref;
|
||||||
_ref = this.keys;
|
_ref = __slice.call(this.keys);
|
||||||
_results = [];
|
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
key = _ref[_i];
|
key = _ref[_i];
|
||||||
_results.push(fn(this[key]));
|
fn(this[key]);
|
||||||
}
|
}
|
||||||
return _results;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return SimpleDict;
|
return SimpleDict;
|
||||||
@ -12734,6 +12732,9 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$.addClass(Index.button, 'fa-spin');
|
$.addClass(Index.button, 'fa-spin');
|
||||||
|
if (Index.isSearching) {
|
||||||
|
Index.clearSearch();
|
||||||
|
}
|
||||||
_ref = this.pathname.split('/'), _ = _ref[0], boardID = _ref[1], view = _ref[2], threadID = _ref[3];
|
_ref = this.pathname.split('/'), _ = _ref[0], boardID = _ref[1], view = _ref[2], threadID = _ref[3];
|
||||||
if ('f' === boardID || 'f' === g.BOARD.ID) {
|
if ('f' === boardID || 'f' === g.BOARD.ID) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -1932,14 +1932,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
SimpleDict.prototype.forEach = function(fn) {
|
SimpleDict.prototype.forEach = function(fn) {
|
||||||
var key, _i, _len, _ref, _results;
|
var key, _i, _len, _ref;
|
||||||
_ref = this.keys;
|
_ref = __slice.call(this.keys);
|
||||||
_results = [];
|
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
key = _ref[_i];
|
key = _ref[_i];
|
||||||
_results.push(fn(this[key]));
|
fn(this[key]);
|
||||||
}
|
}
|
||||||
return _results;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return SimpleDict;
|
return SimpleDict;
|
||||||
@ -12748,6 +12746,9 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$.addClass(Index.button, 'fa-spin');
|
$.addClass(Index.button, 'fa-spin');
|
||||||
|
if (Index.isSearching) {
|
||||||
|
Index.clearSearch();
|
||||||
|
}
|
||||||
_ref = this.pathname.split('/'), _ = _ref[0], boardID = _ref[1], view = _ref[2], threadID = _ref[3];
|
_ref = this.pathname.split('/'), _ = _ref[0], boardID = _ref[1], view = _ref[2], threadID = _ref[3];
|
||||||
if ('f' === boardID || 'f' === g.BOARD.ID) {
|
if ('f' === boardID || 'f' === g.BOARD.ID) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -157,6 +157,7 @@ Navigate =
|
|||||||
return if e and (e.shiftKey or e.ctrlKey or (e.type is 'click' and e.button isnt 0)) # Not simply a left click
|
return if e and (e.shiftKey or e.ctrlKey or (e.type is 'click' and e.button isnt 0)) # Not simply a left click
|
||||||
|
|
||||||
$.addClass Index.button, 'fa-spin'
|
$.addClass Index.button, 'fa-spin'
|
||||||
|
Index.clearSearch() if Index.isSearching
|
||||||
|
|
||||||
[_, boardID, view, threadID] = @pathname.split '/'
|
[_, boardID, view, threadID] = @pathname.split '/'
|
||||||
|
|
||||||
|
|||||||
@ -13,4 +13,6 @@ class SimpleDict
|
|||||||
@keys.splice i, 1
|
@keys.splice i, 1
|
||||||
delete @[key]
|
delete @[key]
|
||||||
|
|
||||||
forEach: (fn) -> fn @[key] for key in @keys
|
forEach: (fn) ->
|
||||||
|
fn @[key] for key in [@keys...]
|
||||||
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user