$(document).ready(function() {
  $('.post-like').show();

  $('.post-like').on('ajax:success', function(event, data) {
    var like_control = $('#post-' + data.id + ' .post-like');

    $('#post-' + data.id + ' .like-count').text(data.description);
    if (data.liked_by_member) {
      like_control.data('method', 'delete');
      like_control.attr('href', data.url);
      like_control.text('Unlike');
    } else {
      like_control.data('method', 'post');
      like_control.attr('href', '/likes.json?post_id=' + data.id);
      like_control.text('Like');
    }
  });
});

@@ -120,26 +120,25 @@
     var like
-_c
+C
 ontrol = $('
@@ -275,34 +275,33 @@
 er) %7B%0A      like
-_c
+C
 ontrol.data('met
@@ -319,34 +319,33 @@
 te');%0A      like
-_c
+C
 ontrol.attr('hre
@@ -361,34 +361,33 @@
 url);%0A      like
-_c
+C
 ontrol.text('Unl
@@ -412,26 +412,25 @@
 %7B%0A      like
-_c
+C
 ontrol.data(
@@ -454,26 +454,25 @@
 ;%0A      like
-_c
+C
 ontrol.attr(
@@ -528,10 +528,9 @@
 like
-_c
+C
 ontr

converted variable to camel case