mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-20 01:09:55 +08:00
42 lines
1.6 KiB
JavaScript
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
|
|
}); |