Stay classy, coffee-script.

This commit is contained in:
Nicolas Stepien 2012-02-06 16:13:04 +01:00
parent df64f4628d
commit 1fbe52ba67
2 changed files with 3 additions and 10 deletions

View File

@ -612,24 +612,16 @@
strikethroughQuotes = {
init: function() {
return g.callbacks.push(function(root) {
var el, quote, _i, _len, _ref, _results;
var el, quote, _i, _len, _ref;
if (root.className === 'inline') return;
_ref = $$('.quotelink', root);
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
quote = _ref[_i];
if ((el = $.id(quote.hash.slice(1))) && el.parentNode.parentNode.parentNode.hidden) {
$.addClass(quote, 'filtered');
if (conf['Recursive Filtering']) {
_results.push(root.hidden = true);
} else {
_results.push(void 0);
}
} else {
_results.push(void 0);
if (conf['Recursive Filtering']) root.hidden = true;
}
}
return _results;
});
}
};

View File

@ -460,6 +460,7 @@ strikethroughQuotes =
if (el = $.id quote.hash[1..]) and el.parentNode.parentNode.parentNode.hidden
$.addClass quote, 'filtered'
root.hidden = true if conf['Recursive Filtering']
return
expandComment =
init: ->