boda_jsEnv/env_xbb_lastest_bo/env/CSSKeyframeRule.js
xuxiaobo-bobo 24cbc7a3fa '0711'
2023-07-11 15:19:33 +08:00

43 lines
1.5 KiB
JavaScript

// CSSKeyframeRule对象
CSSKeyframeRule = function CSSKeyframeRule() {
let arg = arguments[0];
if (arg != 'bobo' && (this instanceof CSSKeyframeRule)) {
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
}
;
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('CSSKeyframeRule 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(CSSKeyframeRule, "CSSKeyframeRule");
CSSKeyframeRule.prototype.__proto__ = CSSRule.prototype;
CSSKeyframeRule.__proto__ = CSSRule;
bodavm.toolsFunc.defineProperty(CSSKeyframeRule.prototype, "keyText", {
configurable: true,
enumerable: true,
get: function keyText() {
return bodavm.toolsFunc.dispatch(this, CSSKeyframeRule.prototype, "CSSKeyframeRule", "keyText_get", arguments);
},
set: function keyText() {
return bodavm.toolsFunc.dispatch(this, CSSKeyframeRule.prototype, "CSSKeyframeRule", "keyText_set", arguments);
}
});
bodavm.toolsFunc.defineProperty(CSSKeyframeRule.prototype, "style", {
configurable: true,
enumerable: true,
get: function style() {
return bodavm.toolsFunc.dispatch(this, CSSKeyframeRule.prototype, "CSSKeyframeRule", "style_get", arguments);
},
set: function style() {
return bodavm.toolsFunc.dispatch(this, CSSKeyframeRule.prototype, "CSSKeyframeRule", "style_set", arguments);
}
});