Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Adding an Item
  2. submittedListItem will contain an event listener.
  3. said listener will, upon user submission of a new item, run said item through generateItemElement.
  4. all new submission will be entered with the appropriate unchecked CSS tag
  5. generateShoppingItemsString will then run to update and compile the strings
  6. [STORE] will be updated.
  7.  
  8. Checking/Unchecking items
  9. event listener for '.shopping-item-toggle' / '.js-item-toggle' button.
  10. upon click Css class will be changed to the opposite of class prior to click.
  11. [STORE] will be updated
  12.  
  13. Deleting an item
  14. event listener for '.shopping-item-delete' button.
  15. upon click entire <li> will be deleted.
  16. [STORE] will be updated
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement