You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
370 B
19 lines
370 B
4 years ago
|
BI.Fragment = function () {
|
||
|
};
|
||
|
|
||
|
BI.h = function (type, props, children) {
|
||
|
if (type === BI.Fragment) {
|
||
|
return children;
|
||
|
}
|
||
|
if (BI.isFunction(type)) {
|
||
|
type = type.xtype;
|
||
|
}
|
||
|
if (type === "el") {
|
||
|
return BI.extend({
|
||
|
el: children[0]
|
||
|
}, props);
|
||
|
}
|
||
|
return BI.extend({
|
||
|
items: children
|
||
|
}, props);
|
||
|
};
|