1
0
Fork 0
forked from 0x2620/oxjs
This commit is contained in:
rolux 2013-12-06 22:15:04 +01:00
commit 37ab78f05b
7 changed files with 22 additions and 23 deletions

View file

@ -37,7 +37,7 @@ Ox.MainMenu = function(options, self) {
});
if (self.options.extras.length) {
that.extras = $('<div>')
that.extras = Ox.$('<div>')
.addClass('OxExtras')
.appendTo(that);
self.options.extras.forEach(function(extra) {
@ -49,7 +49,7 @@ Ox.MainMenu = function(options, self) {
that.titles[position] = $('<div>')
.addClass('OxTitle')
.html(menu.title)
.data('position', position);
.data({position: position});
if (position == 0) {
if (that.titles.length == 1) {
that.titles[position].appendTo(that);