Data Binding Time

118 views
Skip to first unread message

Timothy W. Cook

unread,
Jan 1, 2015, 9:21:59 AM1/1/15
to polymer-dev
This is probably a basic JS question but since I am using Polymer ... 
I do have a development background but I am not a JS guru or even intermediate. So ... 

I am getting this warning in Chrome Dev tools " Attributes on [element name] were data bound prior to Polymer upgrading the element. This may result in incorrect binding types."
​On all of my polymer elements that were created with yo polymer:el  ​[element name]

​Some of these, using core-list I have bound to static data for testing but some of them ​are still just the skeleton as created with Yeoman.
I do notice that one of my core-list elements that has 12 items will display 4 items when first selected (via a menu) and then after selecting another menu option and going back to it it displays all 12.  

I tried putting the 12 item list inside a ready function (from examples on YouTube and the Polymer site) but that didn't change the behavior. 


So what does the warnings mean and what should I do about it?  

​Thanks,
Tim

 

============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

Timothy W. Cook

unread,
Jan 1, 2015, 9:30:31 AM1/1/15
to polymer-dev
BTW: I did find this:

But so far I haven't discovered any sequence of importing that fixes the problem.
--

Rob Dodson

unread,
Jan 5, 2015, 8:38:55 PM1/5/15
to Timothy W. Cook, polymer-dev
The warning is sort of opaque, but it's meant to prevent you from attempting to data bind or interact with a custom element before it has been upgraded.

It's hard to say exactly what's going wrong without seeing a simplified example. You could try creating a project with just one element that illustrates the problem and upload it to github so we can take a look

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/CA%2B%3DOU3WxCTPJdFsyXOjThWfxPEWuSKKQx1o7dft_AupTexgjvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Timothy W. Cook

unread,
Jan 6, 2015, 5:09:01 AM1/6/15
to Rob Dodson, polymer-dev
Thanks Rob. I cannot reproduce the problem with a one element project.  

The code that does produce it is at  https://github.com/twcook/tdv_dashboard 

--Tim
--
Reply all
Reply to author
Forward
0 new messages