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