mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 04:04:25 +08:00
116 lines
4.0 KiB
JavaScript
116 lines
4.0 KiB
JavaScript
// HighlightRegistry对象
|
|
|
|
bodaEnv.memory.globlProtoObj["HighlightRegistry"] = function HighlightRegistry() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo') {
|
|
bodaEnv.toolsFunc.console_copy('HighlightRegistry 实例化对象 --->', bodaEnv.toolsFunc.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodaEnv.toolsFunc.safeProto(bodaEnv.memory.globlProtoObj["HighlightRegistry"], "HighlightRegistry");
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "size", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: {
|
|
size() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "HighlightRegistry", "size_get", arguments);
|
|
}
|
|
}.size,
|
|
set: undefined
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "clear", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: {
|
|
clear() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "HighlightRegistry", "clear", arguments);
|
|
}
|
|
}.clear
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "delete", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: {
|
|
bodelete() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "HighlightRegistry", "bodelete", arguments);
|
|
}
|
|
}.bodelete
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "entries", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: {
|
|
entries() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "HighlightRegistry", "entries", arguments);
|
|
}
|
|
}.entries
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "forEach", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: {
|
|
forEach() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "HighlightRegistry", "forEach", arguments);
|
|
}
|
|
}.forEach
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "get", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: {
|
|
get() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "HighlightRegistry", "get", arguments);
|
|
}
|
|
}.get
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "has", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: {
|
|
has() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "HighlightRegistry", "has", arguments);
|
|
}
|
|
}.has
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "keys", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: {
|
|
keys() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "HighlightRegistry", "keys", arguments);
|
|
}
|
|
}.keys
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "set", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: {
|
|
set() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "HighlightRegistry", "set", arguments);
|
|
}
|
|
}.set
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "values", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: {
|
|
values() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HighlightRegistry"].prototype, "HighlightRegistry", "values", arguments);
|
|
}
|
|
}.values
|
|
}); |