summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/comment-likes/comment-like-count.js')
-rw-r--r--plugins/jetpack/modules/comment-likes/comment-like-count.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/jetpack/modules/comment-likes/comment-like-count.js b/plugins/jetpack/modules/comment-likes/comment-like-count.js
index c46503b4..5d8331f3 100644
--- a/plugins/jetpack/modules/comment-likes/comment-like-count.js
+++ b/plugins/jetpack/modules/comment-likes/comment-like-count.js
@@ -1,9 +1,9 @@
-jQuery( document ).ready( function( $ ) {
+jQuery( document ).ready( function ( $ ) {
var jsonAPIbase = 'https://public-api.wordpress.com/rest/v1',
APIqueue = [];
function getCommentLikeCounts() {
- $( '.comment-like-count' ).each( function() {
+ $( '.comment-like-count' ).each( function () {
var blogId = $( this ).attr( 'data-blog-id' ),
commentId = $( this ).attr( 'data-comment-id' );
@@ -15,7 +15,7 @@ jQuery( document ).ready( function( $ ) {
url: jsonAPIbase + '/batch',
dataType: 'jsonp',
data: 'urls[]=' + APIqueue.map( encodeURIComponent ).join( '&urls[]=' ),
- success: function( response ) {
+ success: function ( response ) {
for ( var path in response ) {
if ( ! response[ path ].error_data ) {
var urlPieces = path.split( '/' ),
@@ -34,7 +34,7 @@ jQuery( document ).ready( function( $ ) {
}
}
},
- error: function() {},
+ error: function () {},
} );
}