forked from 0x2620/oxjs
fix for safari/jquery bug
This commit is contained in:
parent
3884b6dfb3
commit
70d17f3321
4 changed files with 17 additions and 9 deletions
|
|
@ -9,9 +9,12 @@ Ox.Container = function(options, self) {
|
|||
var that = new Ox.Element({}, self)
|
||||
.options(options || {})
|
||||
.addClass('OxContainer');
|
||||
that.$content = new Ox.Element({}, self)
|
||||
that.$content = new Ox.Element({})
|
||||
.options(options || {})
|
||||
.addClass('OxContent')
|
||||
.appendTo(that);
|
||||
/*.appendTo(that)*/;
|
||||
that.append(that.$content);
|
||||
// FIXME: that.append(that.$content) works, but
|
||||
// that.$content.appendTo(that) is broken in Safari
|
||||
return that;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ Ox.DocPage = function(options, self) {
|
|||
.html(
|
||||
'<code><b>' + (name || item.name) + '</b> ' +
|
||||
'<' + item.types.join('></code> or <code><') + '> </code>' +
|
||||
(item.default ? 'default: <code>' + item.default + ' </code>' : '') +
|
||||
(item['default'] ? 'default: <code>' + item['default'] + ' </code>' : '') +
|
||||
Ox.parseHTML(item.summary)
|
||||
)
|
||||
];
|
||||
|
|
|
|||
|
|
@ -291,12 +291,12 @@ Ox.Element = function() {
|
|||
options <function> Gets or sets the options of an element object
|
||||
# Usage
|
||||
() -> <obj> all options
|
||||
(key) -> <val> the value of option[key]
|
||||
(key) -> <any> the value of option[key]
|
||||
(key, value) -> <obj> this element
|
||||
sets options[key] to value and calls self.setOption(key, value)
|
||||
Sets options[key] to value and calls self.setOption(key, value)
|
||||
if the key/value pair was added or modified
|
||||
({key: value, ...}) -> <obj> this element
|
||||
sets multiple options and calls self.setOption(key, value)
|
||||
Sets multiple options and calls self.setOption(key, value)
|
||||
for every key/value pair that was added or modified
|
||||
# Arguments
|
||||
key <str> the name of the option
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue