()
| 27 | } |
| 28 | |
| 29 | function purchaseClicked() { |
| 30 | alert('Thank you for your purchase') |
| 31 | var cartItems = document.getElementsByClassName('cart-items')[0] |
| 32 | while (cartItems.hasChildNodes()) { |
| 33 | cartItems.removeChild(cartItems.firstChild) |
| 34 | } |
| 35 | updateCartTotal() |
| 36 | } |
| 37 | |
| 38 | function removeCartItem(event) { |
| 39 | var buttonClicked = event.target |
nothing calls this directly
no test coverage detected