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]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,21 +87,21 @@ Ox.Menu = function(options, self) {
|
|||
that.$scrollbars = [];
|
||||
that.$top = $('<div>')
|
||||
.addClass('OxTop')
|
||||
.appendTo(that.$element);
|
||||
.appendTo(that);
|
||||
that.$scrollbars.up = renderScrollbar('up')
|
||||
.appendTo(that.$element);
|
||||
.appendTo(that);
|
||||
that.$container = $('<div>')
|
||||
.addClass('OxContainer')
|
||||
.appendTo(that.$element);
|
||||
.appendTo(that);
|
||||
that.$content = $('<table>')
|
||||
.addClass('OxContent')
|
||||
.appendTo(that.$container);
|
||||
renderItems(self.options.items);
|
||||
that.$scrollbars.down = renderScrollbar('down')
|
||||
.appendTo(that.$element);
|
||||
.appendTo(that);
|
||||
that.$bottom = $('<div>')
|
||||
.addClass('OxBottom')
|
||||
.appendTo(that.$element);
|
||||
.appendTo(that);
|
||||
|
||||
function click(event) {
|
||||
var item,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue