mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
bodavm.memory.notDefined['StyleMedia'] = function StyleMedia() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo') {
|
|
console.log_copy('StyleMedia 实例化对象参数为 ->', JSON.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
//return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
|
|
};
|
|
|
|
bodavm.toolsFunc.safeProto(bodavm.memory.notDefined['StyleMedia'], "StyleMedia");
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['StyleMedia'].prototype, "matchMedium", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function matchMedium() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['StyleMedia'].prototype, "StyleMedia", "matchMedium_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
delete bodavm.memory.notDefined['StyleMedia'].prototype.constructor;
|
|
// styleMedia对象
|
|
//bodavm.memory.notDefined['styleMedia'] = {
|
|
// _boisinit: bodavm.config.isinit
|
|
//};
|
|
//bodavm.memory.notDefined['styleMedia'].__proto__ = bodavm.memory.notDefined['StyleMedia'].prototype;
|