Fix an oopsie
This commit is contained in:
parent
7c28da181b
commit
5ec17d3477
@ -1877,14 +1877,12 @@
|
||||
};
|
||||
|
||||
SimpleDict.prototype.forEach = function(fn) {
|
||||
var key, _i, _len, _ref, _results;
|
||||
_ref = this.keys;
|
||||
_results = [];
|
||||
var key, _i, _len, _ref;
|
||||
_ref = __slice.call(this.keys);
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
key = _ref[_i];
|
||||
_results.push(fn(this[key]));
|
||||
fn(this[key]);
|
||||
}
|
||||
return _results;
|
||||
};
|
||||
|
||||
return SimpleDict;
|
||||
@ -12734,6 +12732,9 @@
|
||||
return;
|
||||
}
|
||||
$.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];
|
||||
if ('f' === boardID || 'f' === g.BOARD.ID) {
|
||||
return;
|
||||
|
||||
@ -1932,14 +1932,12 @@
|
||||
};
|
||||
|
||||
SimpleDict.prototype.forEach = function(fn) {
|
||||
var key, _i, _len, _ref, _results;
|
||||
_ref = this.keys;
|
||||
_results = [];
|
||||
var key, _i, _len, _ref;
|
||||
_ref = __slice.call(this.keys);
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
key = _ref[_i];
|
||||
_results.push(fn(this[key]));
|
||||
fn(this[key]);
|
||||
}
|
||||
return _results;
|
||||
};
|
||||
|
||||
return SimpleDict;
|
||||
@ -12748,6 +12746,9 @@
|
||||
return;
|
||||
}
|
||||
$.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];
|
||||
if ('f' === boardID || 'f' === g.BOARD.ID) {
|
||||
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
|
||||
|
||||
$.addClass Index.button, 'fa-spin'
|
||||
Index.clearSearch() if Index.isSearching
|
||||
|
||||
[_, boardID, view, threadID] = @pathname.split '/'
|
||||
|
||||
|
||||
@ -13,4 +13,6 @@ class SimpleDict
|
||||
@keys.splice i, 1
|
||||
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