From fb8ffdc9ed9f1604df3e2a343d5dd433828aa1a7 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 19 Nov 2015 16:22:17 +0100 Subject: [PATCH] fix js --- _src/_assets/js/_menu.js | 5 +++-- _src/_assets/js/app.js | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/_src/_assets/js/_menu.js b/_src/_assets/js/_menu.js index cba8ed4f..7a82b576 100644 --- a/_src/_assets/js/_menu.js +++ b/_src/_assets/js/_menu.js @@ -1,4 +1,4 @@ -var Menu = { +var s, Menu = { settings: { thesite: $('.site'), @@ -7,11 +7,12 @@ var Menu = { }, init: function() { - s = this.settings; this.menuShow(); }, menuShow: function() { + var s = this.settings; + s.thelink.on('click', function(e) { e.preventDefault(); diff --git a/_src/_assets/js/app.js b/_src/_assets/js/app.js index 29744063..f31a43f8 100644 --- a/_src/_assets/js/app.js +++ b/_src/_assets/js/app.js @@ -13,7 +13,7 @@ //=include _menu.js //=include _search.js -jQuery(function($) { +(function() { // // init modules @@ -25,4 +25,4 @@ jQuery(function($) { nosvg: false }); -}); +}());