From e276045112f9aaf0673c90bf8798c15d4029ab37 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 4 Mar 2014 13:09:11 -0500 Subject: [PATCH] TRIVIAL: Change some variables to `self` --- app/assets/javascripts/discourse/views/post_view.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/views/post_view.js b/app/assets/javascripts/discourse/views/post_view.js index dd3d70db3a6..a280530b4c1 100644 --- a/app/assets/javascripts/discourse/views/post_view.js +++ b/app/assets/javascripts/discourse/views/post_view.js @@ -29,9 +29,9 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, { // If the cooked content changed, add the quote controls cookedChanged: function() { - var postView = this; + var self = this; Em.run.schedule('afterRender', function() { - postView.insertQuoteControls(); + self.insertQuoteControls(); }); }.observes('post.cooked'), @@ -120,13 +120,13 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, { // Show how many times links have been clicked on showLinkCounts: function() { - var postView = this; - var link_counts = this.get('post.link_counts'); + var self = this, + link_counts = this.get('post.link_counts'); if (link_counts) { _.each(link_counts, function(lc) { if (lc.clicks > 0) { - postView.$(".cooked a[href]").each(function() { + self.$(".cooked a[href]").each(function() { var link = $(this); if (link.attr('href') === lc.url) { // don't display badge counts on category badge