boda_jsEnv/bodaEnv/env/HTMLPreElement.js
xuxiaobo-bobo 842b34b5ca 0218
2024-02-18 15:40:48 +08:00

32 lines
1.2 KiB
JavaScript

// HTMLPreElement对象
bodaEnv.memory.globlProtoObj["HTMLPreElement"] = function HTMLPreElement() {
let arg = arguments[0];
if (arg != 'bobo') {
bodaEnv.toolsFunc.console_copy('HTMLPreElement 实例化对象 --->', bodaEnv.toolsFunc.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodaEnv.toolsFunc.safeProto(bodaEnv.memory.globlProtoObj["HTMLPreElement"], "HTMLPreElement");
bodaEnv.memory.globlProtoObj["HTMLPreElement"].prototype.__proto__ = bodaEnv.memory.globlProtoObj["HTMLElement"].prototype;
bodaEnv.memory.globlProtoObj["HTMLPreElement"].__proto__ = bodaEnv.memory.globlProtoObj["HTMLElement"];
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HTMLPreElement"].prototype, "width", {
configurable: true,
enumerable: true,
get: {
width() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLPreElement"].prototype, "HTMLPreElement", "width_get", arguments);
}
}.width,
set: {
width() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLPreElement"].prototype, "HTMLPreElement", "width_set", arguments);
}
}.width
});