Bug with nested template binding in 0.3.1

76 views
Skip to first unread message

Chris Gallo

unread,
Jun 4, 2014, 10:04:45 AM6/4/14
to polym...@googlegroups.com
I have some nested template that binds to a nested object hierarchy which was working in 0.2.4 but breaks in 0.3.1.
Passing the object into a filter reveals that the object isn't making it through the template bind's. 

Rob Dodson

unread,
Jun 4, 2014, 1:53:48 PM6/4/14
to Chris Gallo, Rafael Weinstein, polymer-dev
[+rafaelw]

Chris would you mind reducing the test case a bit. There's quite a bit going on in that example and it'll make it easier for us to parse.




Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/54956a29-cfab-42a3-a2b5-82cfed372f1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Gallo

unread,
Jun 4, 2014, 2:37:22 PM6/4/14
to polym...@googlegroups.com, gall...@gmail.com, raf...@google.com
Absolutely, sorry Rob I banged it out this morning waiting at the doctors office...
Is this better?: 

Chris Gallo

unread,
Jun 5, 2014, 7:45:46 PM6/5/14
to polym...@googlegroups.com, gall...@gmail.com, raf...@google.com
I've simplified it more:

There's definitely something weird going on here...
If you open the console, you'll see there's also an infinite loop happening when I directly embed the templated html.
But I'm able to {{ object.property }} in this case, even though the object is null in the filter.
I've narrowed it down to something in polymer vs. platform (not very narrow). 
I'm trying to dink around with it a little...I've got a mini test environment set up where I load all the individual source files instead of polymer.js.
But thats still quite a few files (everything in polymerDev/src (declaration, instance, lib) and polymer-expressions.js) that could be the culprit, so I'm not sure how far I'll get.

Chris Gallo

unread,
Jun 5, 2014, 7:52:03 PM6/5/14
to polym...@googlegroups.com, gall...@gmail.com, raf...@google.com
Aha, just as I posted that it struck me to sub out polymer-expressions.js 0.3.1 for 0.2.4....and now it works, so the bug is in there somewhere. I'll keep digging...

Rafael Weinstein

unread,
Jun 6, 2014, 2:16:52 PM6/6/14
to Chris Gallo, polymer-dev
Excellent bug. Thanks so much for the report. Filed here:

Rafael Weinstein

unread,
Jun 6, 2014, 2:22:47 PM6/6/14
to Chris Gallo, polymer-dev
(fixed in master)
Reply all
Reply to author
Forward
0 new messages