*openJson needs to be bound
This commit is contained in:
parent
4dca570ba8
commit
1491fa7567
|
@ -137,7 +137,7 @@ export default class Config {
|
||||||
assert(fs.existsSync(dir), `Directory ${dir} does not exist`);
|
assert(fs.existsSync(dir), `Directory ${dir} does not exist`);
|
||||||
|
|
||||||
let files = fs.readdirSync(dir).map((item) => Path.join(dir, item));
|
let files = fs.readdirSync(dir).map((item) => Path.join(dir, item));
|
||||||
files.forEach(this.openJson);
|
files.forEach(this.openJson.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
public openJson(file: string) {
|
public openJson(file: string) {
|
||||||
|
|
Loading…
Reference in New Issue