ga-wdi-boston / full-stack-project

Other
8 stars 64 forks source link

.empty and .remove not working #1040

Closed mak1323 closed 7 years ago

mak1323 commented 7 years ago

Just having issues with my list display. I have it as handlebars populated list, and I try to clear it with .empty (didnt work) so now I'm using .remove(didn't work) so kinda at a lost. Current method is to target all boxes made with handlebars and destroy them.

const clearFavorites = (array) => {
  $('.box').remove()
  array = []
}

It sort of updates but not enough for me to declare bug free.

mak1323 commented 7 years ago

Also, definitely want to schedule a 1:1 over project if I can.

jordanallain commented 7 years ago

@mak1323 still having an issue with this?

jordanallain commented 7 years ago

@mak1323 !!!

mak1323 commented 7 years ago

Ah sorry I didnt see this. Yeah for some reason I got this to work, there must have been a conflict somewhere that disallowed it. I'm not sure what I did to fix it.