Skip to content

Commit

Permalink
magento#108: Clear Shopping Cart - Refactor _clearCartConfirmation to…
Browse files Browse the repository at this point in the history
… _confirmClearCart for a simple and concise function naming
  • Loading branch information
John Carlo Octabio committed Jun 9, 2020
1 parent c1ba0e0 commit 0051ec9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]');

Expand Down Expand Up @@ -63,7 +63,7 @@ define([
* Display confirmation modal for clearing the cart
* @private
*/
_clearCartConfirmation: function () {
_confirmClearCart: function () {
var self = this;

confirm({
Expand Down

0 comments on commit 0051ec9

Please sign in to comment.