So, is this no longer a thing with ver 5? (checking the version number)
I’ve defined my mobiscrolls as mobiscroll5 and mobiscroll4. So this way I can use both versions without getting confused. However, I can’t seem to figure out what version of 5 I’m using.
<!-- Mobiscroll -->
<script src="plugins/mobiscroll5/js/mobiscroll.jquery.min.js"></script>
<script>
window.mobiscroll5 = mobiscroll;
$.fn.mobiscroll5 = $.fn.mobiscroll;
</script>
<script src="plugins/mobiscroll4/js/mobiscroll.jquery.min.js"></script>
<script>
window.mobiscroll4 = mobiscroll;
$.fn.mobiscroll4 = $.fn.mobiscroll;
</script>
If I type in mobiscroll4.version in the console I get ‘4.10.9’, but if I type in mobiscroll5.version I get ‘undefined’. What’s the trick?