Upgrade to ECMAScript 6
[plack-app-gruntmaster.git] / js / 90-mobilenav.js
index 8577ecc6a2e3f411328f2eb9c990e91382f09650..fb575d9288a34f375e1118418be5181a87fdfeed 100644 (file)
@@ -3,7 +3,5 @@ $(function(){
                return;
        $('#title')[0].insertAdjacentHTML('beforebegin', '<div class="text-center">Tap title to toggle menu</div>');
        $('nav')[0].classList.add('hidden');
-       $('#title').on('click', function () {
-               $('nav')[0].classList.toggle('hidden');
-       });
+       $('#title').on('click', () => $('nav')[0].classList.toggle('hidden'));
 });
This page took 0.009012 seconds and 4 git commands to generate.