I am working to couple foundation 5 into my ember application and I am running into a new issue with my navigation that uses the topbarjs. Everything works peachy when viewing the application from the desktop, however, when you expand the chrome dev console to force the design into responsive mode, the hamburger menu triggers this message.
Console error message is:
Uncaught TypeError: Cannot read property 'scrolltop' of undefined
This problem can be duplicated in this code repo: chrishough/embercli-emberjs-stackoverflow
My assumption is it has something to do with the the # symbol in the example nav:
<nav class="top-bar" data-topbar data-options="scrolltop:false;is_hover:true;">
<ul class="title-area">
<li class="name">
TEST
</li>
<li class="toggle-topbar menu-icon">
<a href="#"></a>
</li>
</ul>
<section class="top-bar-section center">
<ul class="nav-header">
<li><a {{action goToAnchor 'index' 'menu1'}}>menu1</a></li>
<li><a {{action goToAnchor 'index' 'menu2'}}>menu2</a></li>
<li><a {{action goToAnchor 'index' 'menu3'}}>menu3</a></li>
<li><a {{action goToAnchor 'index' 'menu4'}}>menu4</a></li>
<li><a {{action goToAnchor 'index' 'menu5'}}>menu5</a></li>
</ul>
</section>
</nav>
I am using the ember cli project to build my ember application.
Current setup at the time of this post:
DEBUG: -------------------------------
DEBUG: Ember : 1.5.1
DEBUG: Ember Data : 1.0.0-beta.7+canary.b45e23ba
DEBUG: Handlebars : 1.3.0
DEBUG: jQuery : 2.1.1
DEBUG: -------------------------------