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

42 lines
1.6 KiB
JavaScript

// SVGScriptElement对象
bodaEnv.memory.globlProtoObj["SVGScriptElement"] = function SVGScriptElement() {
let arg = arguments[0];
if (arg != 'bobo') {
bodaEnv.toolsFunc.console_copy('SVGScriptElement 实例化对象 --->', bodaEnv.toolsFunc.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodaEnv.toolsFunc.safeProto(bodaEnv.memory.globlProtoObj["SVGScriptElement"], "SVGScriptElement");
bodaEnv.memory.globlProtoObj["SVGScriptElement"].prototype.__proto__ = bodaEnv.memory.globlProtoObj["SVGElement"].prototype;
bodaEnv.memory.globlProtoObj["SVGScriptElement"].__proto__ = bodaEnv.memory.globlProtoObj["SVGElement"];
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["SVGScriptElement"].prototype, "type", {
configurable: true,
enumerable: true,
get: {
type() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["SVGScriptElement"].prototype, "SVGScriptElement", "type_get", arguments);
}
}.type,
set: {
type() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["SVGScriptElement"].prototype, "SVGScriptElement", "type_set", arguments);
}
}.type
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["SVGScriptElement"].prototype, "href", {
configurable: true,
enumerable: true,
get: {
href() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["SVGScriptElement"].prototype, "SVGScriptElement", "href_get", arguments);
}
}.href,
set: undefined
});