From 6e3f22fd6c25551adc032f03ab50f353eb723e81 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Fri, 12 Jul 2019 10:56:10 -0300 Subject: [PATCH] Tabs should be used for indentation instead of spaces --- assets/js/frontend/add-to-cart.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/js/frontend/add-to-cart.js b/assets/js/frontend/add-to-cart.js index 4703cd54fde..05de7d41696 100644 --- a/assets/js/frontend/add-to-cart.js +++ b/assets/js/frontend/add-to-cart.js @@ -26,9 +26,9 @@ jQuery( function( $ ) { AddToCartHandler.prototype.addRequest = function( request ) { this.requests.push( request ); - if ( 1 === this.requests.length ) { + if ( 1 === this.requests.length ) { this.run(); - } + } } /** @@ -38,7 +38,7 @@ jQuery( function( $ ) { var requestManager = this, originalCallback = requestManager.requests[0].complete; - requestManager.requests[0].complete = function() { + requestManager.requests[0].complete = function() { if ( typeof originalCallback === 'function' ) { originalCallback(); } @@ -48,9 +48,9 @@ jQuery( function( $ ) { if ( requestManager.requests.length > 0 ) { requestManager.run(); } - }; + }; - $.ajax( this.requests[0] ); + $.ajax( this.requests[0] ); } /**