From 0051ec911cd5e02f964ea3c634737a44602edb9d Mon Sep 17 00:00:00 2001 From: John Carlo Octabio Date: Tue, 9 Jun 2020 18:57:11 +0800 Subject: [PATCH] magento/magento2#108: Clear Shopping Cart - Refactor _clearCartConfirmation to _confirmClearCart for a simple and concise function naming --- .../Magento/Checkout/view/frontend/web/js/shopping-cart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Checkout/view/frontend/web/js/shopping-cart.js b/app/code/Magento/Checkout/view/frontend/web/js/shopping-cart.js index b353bc911872..97dff2f6fd47 100644 --- a/app/code/Magento/Checkout/view/frontend/web/js/shopping-cart.js +++ b/app/code/Magento/Checkout/view/frontend/web/js/shopping-cart.js @@ -17,7 +17,7 @@ define([ var items, i, reload; $(this.options.emptyCartButton).on('click', $.proxy(function () { - this._clearCartConfirmation(); + this._confirmClearCart(); }, this)); items = $.find('[data-role="cart-item-qty"]'); @@ -63,7 +63,7 @@ define([ * Display confirmation modal for clearing the cart * @private */ - _clearCartConfirmation: function () { + _confirmClearCart: function () { var self = this; confirm({