boda_jsEnv/env_xbb_lastest_bo/env/HTMLTemplateElement.js
xuxiaobo-bobo 24cbc7a3fa '0711'
2023-07-11 15:19:33 +08:00

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);
}
});