forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
26
electron/node_modules/lazy-val/out/main.js
generated
vendored
Normal file
26
electron/node_modules/lazy-val/out/main.js
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Lazy = void 0;
|
||||
class Lazy {
|
||||
constructor(creator) {
|
||||
this._value = null;
|
||||
this.creator = creator;
|
||||
}
|
||||
get hasValue() {
|
||||
return this.creator == null;
|
||||
}
|
||||
get value() {
|
||||
if (this.creator == null) {
|
||||
return this._value;
|
||||
}
|
||||
const result = this.creator();
|
||||
this.value = result;
|
||||
return result;
|
||||
}
|
||||
set value(value) {
|
||||
this._value = value;
|
||||
this.creator = null;
|
||||
}
|
||||
}
|
||||
exports.Lazy = Lazy;
|
||||
//# sourceMappingURL=main.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue