ignore undefined extras

This commit is contained in:
j 2017-02-17 09:56:57 +01:00
parent eee525a80b
commit 07d9b9c925

View file

@ -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);
});
}