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

Closed
thusqed opened this Issue Apr 17, 2013 · 6 comments

Projects

None yet

2 participants

@thusqed
thusqed commented Apr 17, 2013

Let 'Articles' be monggodb cursor.

foreach Articles as article
    -var a=3
    span= article.title
    span Click Me
        {click}
            console.log(article)
            console.log(a)

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

@bminer
Owner
bminer commented Apr 18, 2013

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

@bminer
Owner
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?

Thanks!

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

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

@bminer
Owner
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
thusqed commented May 3, 2013

Thank you. This operates very well.

@bminer
Owner
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