ignore undefined extras
This commit is contained in:
parent
eee525a80b
commit
07d9b9c925
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue