MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / quantityChanged

Function quantityChanged

assets/js/store.js:44–50  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

42}
43
44function quantityChanged(event) {
45 var input = event.target
46 if (isNaN(input.value) || input.value <= 0) {
47 input.value = 1
48 }
49 updateCartTotal()
50}
51
52function addToCartClicked(event) {
53 var button = event.target

Callers

nothing calls this directly

Calls 1

updateCartTotalFunction · 0.70

Tested by

no test coverage detected