From 54d996ca6abce6f3802b47202c5de538145211b8 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 27 Aug 2015 12:24:58 -0400 Subject: [PATCH] fixed user/logout component + vanilla 3.1.2 --- package.json | 2 +- public/src/app.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 333b5e4475..50b7d2cf83 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "nodebb-rewards-essentials": "0.0.3", "nodebb-theme-lavender": "1.0.52", "nodebb-theme-persona": "2.0.28", - "nodebb-theme-vanilla": "3.1.0", + "nodebb-theme-vanilla": "3.1.2", "nodebb-widget-essentials": "1.0.5", "npm": "^2.1.4", "passport": "^0.3.0", diff --git a/public/src/app.js b/public/src/app.js index 6fe793ed15..11b82a51e0 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -553,7 +553,9 @@ app.cacheBuster = null; handleNewTopic(); - components.get('user/logout').on('click', app.logout); + require(['components'], function(components) { + components.get('user/logout').on('click', app.logout); + }); Visibility.change(function(e, state){ if (state === 'visible') {