Open nikglavin opened 10 years ago
Is there a reason these are defined before app.init as the DOM might not always be ready if the script is loaded early ?
var inner = document.getElementById('inner-wrap'), nav_open = false, nav_class = 'js-nav';
Shouldn't be an issue when the script is loaded at the end of the document? https://github.com/dbushell/Responsive-Off-Canvas-Menu/blob/master/step4.html
Is there a reason these are defined before app.init as the DOM might not always be ready if the script is loaded early ?