mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
49 lines
1.8 KiB
JavaScript
49 lines
1.8 KiB
JavaScript
// HTMLTemplateElement对象
|
|
|
|
HTMLTemplateElement = function HTMLTemplateElement() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo' && (this instanceof HTMLTemplateElement)) {
|
|
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
|
|
}
|
|
;
|
|
bodavm.toolsFunc.symbolProperty(this);
|
|
if (arg != 'bobo') {
|
|
console.log_copy('HTMLTemplateElement 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodavm.toolsFunc.safeProto(HTMLTemplateElement, "HTMLTemplateElement");
|
|
HTMLTemplateElement.prototype.__proto__ = HTMLElement.prototype;
|
|
HTMLTemplateElement.__proto__ = HTMLElement;
|
|
bodavm.toolsFunc.defineProperty(HTMLTemplateElement.prototype, "content", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function content() {
|
|
return bodavm.toolsFunc.dispatch(this, HTMLTemplateElement.prototype, "HTMLTemplateElement", "content_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(HTMLTemplateElement.prototype, "shadowRoot", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function shadowRoot() {
|
|
return bodavm.toolsFunc.dispatch(this, HTMLTemplateElement.prototype, "HTMLTemplateElement", "shadowRoot_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(HTMLTemplateElement.prototype, "shadowRootMode", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function shadowRootMode() {
|
|
return bodavm.toolsFunc.dispatch(this, HTMLTemplateElement.prototype, "HTMLTemplateElement", "shadowRootMode_get", arguments);
|
|
},
|
|
set: function shadowRootMode() {
|
|
return bodavm.toolsFunc.dispatch(this, HTMLTemplateElement.prototype, "HTMLTemplateElement", "shadowRootMode_set", arguments);
|
|
}
|
|
}); |