Remove some good practices... if we weren't using CoffeeScript

This commit is contained in:
Zixaphir 2013-05-10 01:34:30 -07:00
parent 9c84cd379c
commit 3283e38cd9
4 changed files with 8 additions and 11 deletions

View File

@ -4125,8 +4125,7 @@
if (Conf['Highlight Posts Quoting You']) {
$.addClass(doc, 'highlight-you');
}
this.text = '\u00A0(You)';
return Post.prototype.callbacks.push({
return this.text = Post.prototype.callbacks.push({
name: 'Mark Quotes of You',
cb: this.node
});
@ -4147,7 +4146,7 @@
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
quotelink = quotelinks[_i];
if (QR.db.get(Get.postDataFromLink(quotelink))) {
$.add(quotelink, $.tn(QuoteYou.text));
$.add(quotelink, $.tn('\u00A0(You)'));
$.addClass(this.nodes.root, 'quotesYou');
}
}

View File

@ -4109,8 +4109,7 @@
if (Conf['Highlight Posts Quoting You']) {
$.addClass(doc, 'highlight-you');
}
this.text = '\u00A0(You)';
return Post.prototype.callbacks.push({
return this.text = Post.prototype.callbacks.push({
name: 'Mark Quotes of You',
cb: this.node
});
@ -4131,7 +4130,7 @@
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
quotelink = quotelinks[_i];
if (QR.db.get(Get.postDataFromLink(quotelink))) {
$.add(quotelink, $.tn(QuoteYou.text));
$.add(quotelink, $.tn('\u00A0(You)'));
$.addClass(this.nodes.root, 'quotesYou');
}
}

View File

@ -4111,8 +4111,7 @@
if (Conf['Highlight Posts Quoting You']) {
$.addClass(doc, 'highlight-you');
}
this.text = '\u00A0(You)';
return Post.prototype.callbacks.push({
return this.text = Post.prototype.callbacks.push({
name: 'Mark Quotes of You',
cb: this.node
});
@ -4133,7 +4132,7 @@
for (_i = 0, _len = quotelinks.length; _i < _len; _i++) {
quotelink = quotelinks[_i];
if (QR.db.get(Get.postDataFromLink(quotelink))) {
$.add(quotelink, $.tn(QuoteYou.text));
$.add(quotelink, $.tn('\u00A0(You)'));
$.addClass(this.nodes.root, 'quotesYou');
}
}

View File

@ -9,7 +9,7 @@ QuoteYou =
$.addClass doc, 'highlight-you'
# \u00A0 is nbsp
@text = '\u00A0(You)'
@text =
Post::callbacks.push
name: 'Mark Quotes of You'
cb: @node
@ -26,6 +26,6 @@ QuoteYou =
for quotelink in quotelinks
if QR.db.get Get.postDataFromLink quotelink
$.add quotelink, $.tn QuoteYou.text
$.add quotelink, $.tn '\u00A0(You)'
$.addClass @nodes.root, 'quotesYou'
return