Neon animation demo, where's the magic ?

77 views
Skip to first unread message

Robert Stone

unread,
Jul 9, 2015, 6:37:53 AM7/9/15
to polym...@googlegroups.com
I've been taking a look at the neon animation demos and can understand most of it, however I'm missing something with the declarative one:


I can't see where the _onPrevClick/_onNextClick functions are getting bound to the relevant buttons leaving me to assume that some sort of magic is taking place ;)

Anyone care to point out the (not so) obvious ?

Robert Stone

unread,
Jul 9, 2015, 8:04:01 AM7/9/15
to polym...@googlegroups.com
So we can see the handlers being added in the github version, just not on the live page

Robert Stone

unread,
Jul 9, 2015, 8:13:15 AM7/9/15
to polym...@googlegroups.com
So I guess this is related to https://www.polymer-project.org/1.0/docs/devguide/events.html#annotated-listeners

I'm just a bit surprised that polymer (?) is stripping out the 'on-click' attributes when it processes the template, at least that is what I assume is happening.

Up until now it has been fairly easy to see how a web app works using just the browser dev tools, things like this will make debugging mis-behaving apps a lot more 'interesting'.
Reply all
Reply to author
Forward
0 new messages