Fix an oopsie

This commit is contained in:
Zixaphir 2014-03-03 12:53:01 -07:00
parent 7c28da181b
commit 5ec17d3477
4 changed files with 16 additions and 11 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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 '/'

View File

@ -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