I have this running after I have output my markup (just before the </body>
:
$(document).ready(function() {
.....
focusLeaving: function(){
e('#running');
$('.levelThree').on('mouseleave',function () {
e('remove');
MM.internalMenu.levelFive.close(function(){});
MM.internalMenu.levelThree.close($(this));
$(this).parent().removeClass('active');
});
}
//This outputs as expect: '#running'
....
});
However leaving a .levelThree
nothing will happen. If I run the above code inside the console or even run the function itself via the console MM.internalMenu.levelThree.focusLeaving();
the the function works accordingly.
This is confused me no end, I know it should work. I even know its running, so why won't it work....