2011-04-23 16:45:50 +00:00
|
|
|
// vim: et:ts=4:sw=4:sts=4:ft=js
|
2011-04-22 22:03:10 +00:00
|
|
|
// fixme: wouldn't it be better to let the elements be,
|
|
|
|
// rather then $element, $content, and potentially others,
|
|
|
|
// 0, 1, 2, etc, so that append would append 0, and appendTo
|
|
|
|
// would append (length - 1)?
|
|
|
|
|
|
|
|
Ox.Container = function(options, self) {
|
|
|
|
// fixme: to be deprecated
|
2011-04-29 12:40:51 +00:00
|
|
|
var that = new Ox.Element({}, self)
|
2011-04-22 22:03:10 +00:00
|
|
|
.options(options || {})
|
|
|
|
.addClass('OxContainer');
|
2011-05-11 16:33:19 +00:00
|
|
|
that.$content = new Ox.Element({})
|
2011-04-22 22:03:10 +00:00
|
|
|
.options(options || {})
|
|
|
|
.addClass('OxContent')
|
2011-05-11 16:33:19 +00:00
|
|
|
/*.appendTo(that)*/;
|
|
|
|
that.append(that.$content);
|
|
|
|
// FIXME: that.append(that.$content) works, but
|
|
|
|
// that.$content.appendTo(that) is broken in Safari
|
2011-04-22 22:03:10 +00:00
|
|
|
return that;
|
|
|
|
};
|