From 07d9b9c925d02c10e611ad237b3f6e7674889693 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 17 Feb 2017 09:56:57 +0100 Subject: [PATCH] ignore undefined extras --- source/UI/js/Menu/MainMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/Menu/MainMenu.js b/source/UI/js/Menu/MainMenu.js index 03425a84..aa17772b 100644 --- a/source/UI/js/Menu/MainMenu.js +++ b/source/UI/js/Menu/MainMenu.js @@ -41,7 +41,7 @@ Ox.MainMenu = function(options, self) { .addClass('OxExtras') .appendTo(that); self.options.extras.forEach(function(extra) { - extra.appendTo(that.extras); + extra && extra.appendTo(that.extras); }); }