diff --git a/assets/js/frontend/add-to-cart.js b/assets/js/frontend/add-to-cart.js index 05de7d41696..4065e73a79d 100644 --- a/assets/js/frontend/add-to-cart.js +++ b/assets/js/frontend/add-to-cart.js @@ -29,12 +29,12 @@ jQuery( function( $ ) { if ( 1 === this.requests.length ) { this.run(); } - } + }; /** * Run add to cart events. */ - AddToCartHandler.prototype.run = function( e ) { + AddToCartHandler.prototype.run = function() { var requestManager = this, originalCallback = requestManager.requests[0].complete; @@ -51,7 +51,7 @@ jQuery( function( $ ) { }; $.ajax( this.requests[0] ); - } + }; /** * Handle the add to cart event.