mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
43 lines
1.6 KiB
JavaScript
43 lines
1.6 KiB
JavaScript
// IDBOpenDBRequest对象
|
|
|
|
IDBOpenDBRequest = function IDBOpenDBRequest() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo' && (this instanceof IDBOpenDBRequest)) {
|
|
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
|
|
}
|
|
;
|
|
bodavm.toolsFunc.symbolProperty(this);
|
|
if (arg != 'bobo') {
|
|
console.log_copy('IDBOpenDBRequest 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodavm.toolsFunc.safeProto(IDBOpenDBRequest, "IDBOpenDBRequest");
|
|
IDBOpenDBRequest.prototype.__proto__ = IDBRequest.prototype;
|
|
IDBOpenDBRequest.__proto__ = IDBRequest;
|
|
bodavm.toolsFunc.defineProperty(IDBOpenDBRequest.prototype, "onblocked", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onblocked() {
|
|
return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onblocked_get", arguments);
|
|
},
|
|
set: function onblocked() {
|
|
return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onblocked_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(IDBOpenDBRequest.prototype, "onupgradeneeded", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onupgradeneeded() {
|
|
return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onupgradeneeded_get", arguments);
|
|
},
|
|
set: function onupgradeneeded() {
|
|
return bodavm.toolsFunc.dispatch(this, IDBOpenDBRequest.prototype, "IDBOpenDBRequest", "onupgradeneeded_set", arguments);
|
|
}
|
|
}); |