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

Function ctrlDelInput

assets/js/groceryList.js:157–167  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

155
156 //For deleting each item
157 var ctrlDelInput = function(event){
158
159 var itemID,splitID,type,ID;
160 itemID = event.target.parentNode.parentNode.parentNode.parentNode.id;
161 if(itemID){
162 splitID = itemID.split('-');
163 ID = parseInt(splitID[1]);
164 itemCtrl.deleteItem(ID);
165 uiCtrl.deleteListItem(itemID);
166 }
167 };
168
169 //To delete all items
170 var deleteAll = function(){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected