meteorhacks / zones

Zone.js integration for meteor
MIT License
30 stars 11 forks source link

Zones changes context in #each #18

Closed djhi closed 10 years ago

djhi commented 10 years ago

I had troubles to find this :)

When binding events on items inside an each helper, the context is modified by Zones. This is not the current item anymore.

I use reactive-modal, and when Zones is loaded, the buttons events don't work anymore because the datacontext is set to the template context instead of the current button. Removing Zones correct the problem.

arunoda commented 10 years ago

Hmm.

Thanks for the issue. Can you please send me a sample repo. That'll help us to debug easily. In the meantime, I will see for any suspicious changes.

arunoda commented 10 years ago

I think we found the issue. Let us work on a fix.

P.S. Actually @mnmtanish found it :)

djhi commented 10 years ago

I'll check asap :) Really great lib btw. Thanks a lot for this.

arunoda commented 10 years ago

Hey, we just published a new version. I hope, that will fix your issue.

djhi commented 10 years ago

Confirmed. It works :)

arunoda commented 10 years ago

Nice.


Arunoda Susiripala

@arunoda http://twitter.com/arunoda http://gplus.to/arunodahttps://github.com/arunoda http://www.linkedin.com/in/arunoda

On Fri, Jul 25, 2014 at 4:34 PM, djhi notifications@github.com wrote:

Confirmed. It works :)

— Reply to this email directly or view it on GitHub https://github.com/meteorhacks/meteor-zones/issues/18#issuecomment-50135515 .