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

81 lines
2.9 KiB
JavaScript

// NavigationHistoryEntry对象
NavigationHistoryEntry = function NavigationHistoryEntry() {
let arg = arguments[0];
if (arg != 'bobo' && (this instanceof NavigationHistoryEntry)) {
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
}
;
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('NavigationHistoryEntry 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(NavigationHistoryEntry, "NavigationHistoryEntry");
NavigationHistoryEntry.prototype.__proto__ = EventTarget.prototype;
NavigationHistoryEntry.__proto__ = EventTarget;
bodavm.toolsFunc.defineProperty(NavigationHistoryEntry.prototype, "key", {
configurable: true,
enumerable: true,
get: function key() {
return bodavm.toolsFunc.dispatch(this, NavigationHistoryEntry.prototype, "NavigationHistoryEntry", "key_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(NavigationHistoryEntry.prototype, "id", {
configurable: true,
enumerable: true,
get: function id() {
return bodavm.toolsFunc.dispatch(this, NavigationHistoryEntry.prototype, "NavigationHistoryEntry", "id_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(NavigationHistoryEntry.prototype, "url", {
configurable: true,
enumerable: true,
get: function url() {
return bodavm.toolsFunc.dispatch(this, NavigationHistoryEntry.prototype, "NavigationHistoryEntry", "url_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(NavigationHistoryEntry.prototype, "index", {
configurable: true,
enumerable: true,
get: function index() {
return bodavm.toolsFunc.dispatch(this, NavigationHistoryEntry.prototype, "NavigationHistoryEntry", "index_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(NavigationHistoryEntry.prototype, "sameDocument", {
configurable: true,
enumerable: true,
get: function sameDocument() {
return bodavm.toolsFunc.dispatch(this, NavigationHistoryEntry.prototype, "NavigationHistoryEntry", "sameDocument_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(NavigationHistoryEntry.prototype, "ondispose", {
configurable: true,
enumerable: true,
get: function ondispose() {
return bodavm.toolsFunc.dispatch(this, NavigationHistoryEntry.prototype, "NavigationHistoryEntry", "ondispose_get", arguments);
},
set: function ondispose() {
return bodavm.toolsFunc.dispatch(this, NavigationHistoryEntry.prototype, "NavigationHistoryEntry", "ondispose_set", arguments);
}
});
bodavm.toolsFunc.defineProperty(NavigationHistoryEntry.prototype, "getState", {
configurable: true,
enumerable: true,
writable: true,
value: function getState() {
return bodavm.toolsFunc.dispatch(this, NavigationHistoryEntry.prototype, "NavigationHistoryEntry", "getState", arguments);
}
});