less indenting

This commit is contained in:
James Campos 2011-05-09 22:43:58 -07:00
parent 2295c19ade
commit 27d221cee4
2 changed files with 44 additions and 45 deletions

View File

@ -1693,15 +1693,15 @@
return g.callbacks.push(quoteBacklink.node);
},
node: function(root) {
var backlink, el, good, id, link, quote, _i, _len, _ref, _results;
var backlink, el, good, id, link, quote, _i, _j, _len, _len2, _ref, _ref2, _results;
_ref = $$('a.quotelink', root);
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
quote = _ref[_i];
el = d.getElementById(quote.textContent.slice(2));
_results.push((function() {
var _j, _len2, _ref2;
if (el && el.className !== 'op') {
if (!el || el.className === 'op') {
continue;
}
good = 1;
id = quote.parentNode.parentNode.parentNode.id;
_ref2 = $$('a.backlink', el);
@ -1712,7 +1712,9 @@
break;
}
}
if (good) {
if (!good) {
continue;
}
link = $.el('a', {
href: '#' + id,
className: 'backlink',
@ -1723,10 +1725,7 @@
$.bind(link, 'mousemove', ui.hover);
$.bind(link, 'mouseout', ui.hoverend);
}
return $.before($('br, blockquote', el), link);
}
}
})());
_results.push($.before($('br, blockquote', el), link));
}
return _results;
}

View File

@ -1353,14 +1353,14 @@ quoteBacklink =
node: (root) ->
for quote in $$ 'a.quotelink', root
el = d.getElementById(quote.textContent[2..])
if el and el.className isnt 'op'
continue if not el or el.className is 'op'
good = 1
id = quote.parentNode.parentNode.parentNode.id
for backlink in $$ 'a.backlink', el
if backlink.textContent is '>>'+id
good = 0
break
if good
continue if not good
link = $.el 'a',
href: '#'+id
className: 'backlink'