From 2f19640ce180da057f8fb3768f33729844d97d75 Mon Sep 17 00:00:00 2001 From: Peter Fabian Date: Mon, 15 Jul 2019 12:59:06 +0200 Subject: [PATCH] Fixed jshint problems. --- assets/js/frontend/add-to-cart.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.