$('#activate_mmenu').on('click', function(){ $("#menu") .mmenu() .on('init', function(){ console.log('init'); }) .trigger( "init" ); });
The documentation doesn't say a ton about custom events, but I got this to work. Then run it. As a result, you can simulate callbacks during initialization.
First, I created a custom event and bound it to the .mm namespace, as recommended in the docs, but that doesn't seem necessary.
source share