blade 3.2.2 Meteor : Inline event handler in foreach doesn't recognize local variables. #167

thusqed opened this Issue Apr 17, 2013 · 6 comments


None yet

2 participants

thusqed commented Apr 17, 2013

Let 'Articles' be monggodb cursor.

foreach Articles as article
    -var a=3
    span= article.title
    span Click Me

When i clicked on "Click Me" text
[results in chrome]
Uncaught ReferenceError: article is not defined
Uncaught ReferenceError: a is not defined

bminer commented Apr 18, 2013

This is probably a duplicate of #156, but upon fixing that issue, I'll post back here.

bminer commented Apr 23, 2013

Issue #156 has been closed. Please try again now. Has this bug been fixed as of Blade 3.2.6?


@bminer bminer was assigned Apr 23, 2013
bminer commented Apr 29, 2013

@thusqed - Have you had a chance to see if this bug has been fixed? Thanks!

bminer commented May 2, 2013

Closing this issue for now. I believe that this should now be fixed. Please write back here if that's not the case.

@bminer bminer closed this May 2, 2013
thusqed commented May 3, 2013

Thank you. This operates very well.

bminer commented May 3, 2013

No problem. Glad to hear this got fixed! Thanks for the bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment