ACTUALLY remove some good practices.

This commit is contained in:
Zixaphir 2013-05-10 01:40:09 -07:00
parent 3283e38cd9
commit 2b8467cfc8
4 changed files with 17 additions and 18 deletions

View File

@ -4131,7 +4131,7 @@
});
},
node: function() {
var quotelink, quotelinks, quotes, _i, _len;
var quotelink, _i, _len, _ref;
if (this.isClone) {
return;
@ -4139,12 +4139,12 @@
if (this.info.yours) {
$.addClass(this.nodes.root, 'yourPost');
}
if (!(quotes = this.quotes).length) {
if (!this.quotes.length) {
return;
}
quotelinks = this.nodes.quotelinks;
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
quotelink = quotelinks[_i];
_ref = this.nodes.quotelinks;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
quotelink = _ref[_i];
if (QR.db.get(Get.postDataFromLink(quotelink))) {
$.add(quotelink, $.tn('\u00A0(You)'));
$.addClass(this.nodes.root, 'quotesYou');

View File

@ -4115,7 +4115,7 @@
});
},
node: function() {
var quotelink, quotelinks, quotes, _i, _len;
var quotelink, _i, _len, _ref;
if (this.isClone) {
return;
@ -4123,12 +4123,12 @@
if (this.info.yours) {
$.addClass(this.nodes.root, 'yourPost');
}
if (!(quotes = this.quotes).length) {
if (!this.quotes.length) {
return;
}
quotelinks = this.nodes.quotelinks;
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
quotelink = quotelinks[_i];
_ref = this.nodes.quotelinks;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
quotelink = _ref[_i];
if (QR.db.get(Get.postDataFromLink(quotelink))) {
$.add(quotelink, $.tn('\u00A0(You)'));
$.addClass(this.nodes.root, 'quotesYou');

View File

@ -4117,7 +4117,7 @@
});
},
node: function() {
var quotelink, quotelinks, quotes, _i, _len;
var quotelink, _i, _len, _ref;
if (this.isClone) {
return;
@ -4125,12 +4125,12 @@
if (this.info.yours) {
$.addClass(this.nodes.root, 'yourPost');
}
if (!(quotes = this.quotes).length) {
if (!this.quotes.length) {
return;
}
quotelinks = this.nodes.quotelinks;
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
quotelink = quotelinks[_i];
_ref = this.nodes.quotelinks;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
quotelink = _ref[_i];
if (QR.db.get(Get.postDataFromLink(quotelink))) {
$.add(quotelink, $.tn('\u00A0(You)'));
$.addClass(this.nodes.root, 'quotesYou');

View File

@ -21,10 +21,9 @@ QuoteYou =
$.addClass @nodes.root, 'yourPost'
# Stop there if there's no quotes in that post.
return unless (quotes = @quotes).length
{quotelinks} = @nodes
return unless @quotes.length
for quotelink in quotelinks
for quotelink in @nodes.quotelinks
if QR.db.get Get.postDataFromLink quotelink
$.add quotelink, $.tn '\u00A0(You)'
$.addClass @nodes.root, 'quotesYou'