forked from 0x2620/oxjs
use Ox.$
This commit is contained in:
parent
a97170ea5b
commit
37ab78f05b
7 changed files with 22 additions and 23 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue