my bad sorry about this one, didn't notice the typo

var sc*r*affold --> var scaffold

*the only problem now is it's not directed to exact div id location using 
firefox but in chrome is totally fine*

On Friday, November 14, 2014 11:05:29 AM UTC+8, Gee Jay Almestas wrote:
>
> Hi, im having problem with my js script im using firefox 33.1 only* i 
> don't get any error using chrome*
>
> *here's my script "problem highlighted"*
> <script>
>     
>     var scraffold = document.getElementById('scaffold');
>     var menu = document.getElementById('menu');
>     
>     menu.addEventListener('core-select', function(e) {
>       if (e.detail.isSelected) {
>         scrollToSection(e.detail.item.getAttribute('name'));
>       }
>     });
>     
>     function scrollToSection(id) {
>       var section = document.getElementById(id);
>       if (section) {
>         scaffold.$.headerPanel.scroller.scrollTop = section.offsetTop;
>       }
>     }
>   
>   </script>
>
>
>

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/c3928302-25d6-4b88-9ff8-7b41b48cfe0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to