Tabs should be used for indentation instead of spaces
This commit is contained in:
parent
0809c96168
commit
6e3f22fd6c
|
@ -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] );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue