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

112 lines
4.2 KiB
JavaScript

// HTMLEmbedElement对象
bodaEnv.memory.globlProtoObj["HTMLEmbedElement"] = function HTMLEmbedElement() {
let arg = arguments[0];
if (arg != 'bobo') {
bodaEnv.toolsFunc.console_copy('HTMLEmbedElement 实例化对象 --->', bodaEnv.toolsFunc.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodaEnv.toolsFunc.safeProto(bodaEnv.memory.globlProtoObj["HTMLEmbedElement"], "HTMLEmbedElement");
bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype.__proto__ = bodaEnv.memory.globlProtoObj["HTMLElement"].prototype;
bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].__proto__ = bodaEnv.memory.globlProtoObj["HTMLElement"];
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "src", {
configurable: true,
enumerable: true,
get: {
src() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "src_get", arguments);
}
}.src,
set: {
src() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "src_set", arguments);
}
}.src
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "type", {
configurable: true,
enumerable: true,
get: {
type() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "type_get", arguments);
}
}.type,
set: {
type() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "type_set", arguments);
}
}.type
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "width", {
configurable: true,
enumerable: true,
get: {
width() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "width_get", arguments);
}
}.width,
set: {
width() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "width_set", arguments);
}
}.width
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "height", {
configurable: true,
enumerable: true,
get: {
height() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "height_get", arguments);
}
}.height,
set: {
height() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "height_set", arguments);
}
}.height
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "align", {
configurable: true,
enumerable: true,
get: {
align() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "align_get", arguments);
}
}.align,
set: {
align() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "align_set", arguments);
}
}.align
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "name", {
configurable: true,
enumerable: true,
get: {
name() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "name_get", arguments);
}
}.name,
set: {
name() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "name_set", arguments);
}
}.name
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "getSVGDocument", {
configurable: true,
enumerable: true,
writable: true,
value: {
getSVGDocument() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLEmbedElement"].prototype, "HTMLEmbedElement", "getSVGDocument", arguments);
}
}.getSVGDocument
});