Skip to content

Commit c1ba0e0

Browse files
author
John Carlo Octabio
committed
magento#108: Clear Shopping Cart - Refactor to fix expected jsdoc-block in shopping-cart.js and fix Grid.php PHPdoc long description
1 parent 7dad27c commit c1ba0e0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/code/Magento/Checkout/Block/Cart/Grid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ public function getItems()
165165
}
166166

167167
/**
168-
* Verify if display pager on shopping cart
169-
* If cart block has custom_items and items qty in the shopping cart<limit from stores configuration
168+
* Verify if display pager on shopping cart if cart block has custom_items and items qty in the shopping cart<limit
169+
* from stores configuration
170170
*
171171
* @return bool
172172
*/

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ define([
6969
confirm({
7070
content: $.mage.__('Are you sure you want to remove all items from your shopping cart?'),
7171
actions: {
72+
/**
73+
* Confirmation modal handler to execute clear cart action
74+
*/
7275
confirm: function () {
7376
self.clearCart();
7477
}

0 commit comments

Comments
 (0)