Tabs should be used for indentation instead of spaces

This commit is contained in:
Rodrigo Primo 2019-07-12 10:56:10 -03:00
parent 0809c96168
commit 6e3f22fd6c
1 changed files with 5 additions and 5 deletions

View File

@ -26,9 +26,9 @@ jQuery( function( $ ) {
AddToCartHandler.prototype.addRequest = function( request ) { AddToCartHandler.prototype.addRequest = function( request ) {
this.requests.push( request ); this.requests.push( request );
if ( 1 === this.requests.length ) { if ( 1 === this.requests.length ) {
this.run(); this.run();
} }
} }
/** /**
@ -38,7 +38,7 @@ jQuery( function( $ ) {
var requestManager = this, var requestManager = this,
originalCallback = requestManager.requests[0].complete; originalCallback = requestManager.requests[0].complete;
requestManager.requests[0].complete = function() { requestManager.requests[0].complete = function() {
if ( typeof originalCallback === 'function' ) { if ( typeof originalCallback === 'function' ) {
originalCallback(); originalCallback();
} }
@ -48,9 +48,9 @@ jQuery( function( $ ) {
if ( requestManager.requests.length > 0 ) { if ( requestManager.requests.length > 0 ) {
requestManager.run(); requestManager.run();
} }
}; };
$.ajax( this.requests[0] ); $.ajax( this.requests[0] );
} }
/** /**