jdanyow / aurelia-solitaire

Klondike solitaire built with Aurelia and dragula
http://jdanyow.github.io/aurelia-solitaire/
MIT License
74 stars 25 forks source link

aurelia-solitaire breaks after update to the aurelia beta release #3

Open loreofblasius opened 8 years ago

loreofblasius commented 8 years ago

After updating aurelia-solitaire to the beta release of aurelia, the drag-and drop operation doesn't work anymore. The failure happens in drag-and-drop.js, where the expression el.parentElement.card.card resolves to "undefined". Any work-around for this issue ?

dankraus commented 8 years ago

@loreofblasius - I'm in the same boat. I'm trying to see what would have changed in the template stuff.

I can't figure out how to get the view model that's associated with a given element. el.parentElement would be the element. I think if I could figure out how to get the view model associated with that it might help?

jdanyow commented 8 years ago

I'll update to the latest aurelia bits next week- sorry for the delay