Skip to content

Commit 0051ec9

Browse files
author
John Carlo Octabio
committed
#108: Clear Shopping Cart - Refactor _clearCartConfirmation to _confirmClearCart for a simple and concise function naming
1 parent c1ba0e0 commit 0051ec9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Checkout/view/frontend/web/js/shopping-cart.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ define([
1717
var items, i, reload;
1818

1919
$(this.options.emptyCartButton).on('click', $.proxy(function () {
20-
this._clearCartConfirmation();
20+
this._confirmClearCart();
2121
}, this));
2222
items = $.find('[data-role="cart-item-qty"]');
2323

@@ -63,7 +63,7 @@ define([
6363
* Display confirmation modal for clearing the cart
6464
* @private
6565
*/
66-
_clearCartConfirmation: function () {
66+
_confirmClearCart: function () {
6767
var self = this;
6868

6969
confirm({

0 commit comments

Comments
 (0)