mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-19 02:24:42 +08:00
38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
// SVGAElement对象
|
|
|
|
bodaEnv.memory.globlProtoObj["SVGAElement"] = function SVGAElement() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo') {
|
|
bodaEnv.toolsFunc.console_copy('SVGAElement 实例化对象 --->', bodaEnv.toolsFunc.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodaEnv.toolsFunc.safeProto(bodaEnv.memory.globlProtoObj["SVGAElement"], "SVGAElement");
|
|
bodaEnv.memory.globlProtoObj["SVGAElement"].prototype.__proto__ = bodaEnv.memory.globlProtoObj["SVGGraphicsElement"].prototype;
|
|
bodaEnv.memory.globlProtoObj["SVGAElement"].__proto__ = bodaEnv.memory.globlProtoObj["SVGGraphicsElement"];
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["SVGAElement"].prototype, "target", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: {
|
|
target() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["SVGAElement"].prototype, "SVGAElement", "target_get", arguments);
|
|
}
|
|
}.target,
|
|
set: undefined
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["SVGAElement"].prototype, "href", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: {
|
|
href() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["SVGAElement"].prototype, "SVGAElement", "href_get", arguments);
|
|
}
|
|
}.href,
|
|
set: undefined
|
|
}); |