forked from 0x2620/oxjs
appendTo(that.$element) -> appendTo(that)
This commit is contained in:
parent
a6b0907cdc
commit
244591d57e
13 changed files with 37 additions and 37 deletions
|
|
@ -37,7 +37,7 @@ Ox.MainMenu = function(options, self) {
|
|||
if (self.options.extras.length) {
|
||||
that.extras = $('<div>')
|
||||
.addClass('OxExtras')
|
||||
.appendTo(that.$element);
|
||||
.appendTo(that);
|
||||
self.options.extras.forEach(function(extra) {
|
||||
extra.css({
|
||||
float: 'left' // fixme: need class!
|
||||
|
|
@ -52,7 +52,7 @@ Ox.MainMenu = function(options, self) {
|
|||
.data('position', position);
|
||||
if (position == 0) {
|
||||
if (that.titles.length == 1) {
|
||||
that.titles[position].appendTo(that.$element);
|
||||
that.titles[position].appendTo(that);
|
||||
} else {
|
||||
that.titles[position].insertBefore(that.titles[1]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue