Useage help
Opened this issue · 0 comments
mattyd2478 commented
Fantastic script which has helped me create just the right effect I was looking for.
Complete noob question though....
What's the correct way to make use of the simple menu.open() & menu.close() functions from a separate standalone JS file?
I understand that it needs to be initialized first somehow.
Ideally, in the standalone file, I'd like to do something like this:
$('body').on('click', 'a.brand_link', function(e) {
e.preventDefault();
menu.open();
// maybe do something else
menu.close();
});
Any pointers or help would be really appeciated.