mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Fixed failing tests
refs 492960b9a8 (diff-658dc5d7181e4b0fe52a60085b938fa830b22a82a0f58e7fe49a1455984c58ce)
- The `this` context binding was not set on some of the class methods causing all sorts of chaos
This commit is contained in:
parent
492960b9a8
commit
f65c068442
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,12 @@ class CacheManager {
|
||||||
this.publicSettings = publicSettings;
|
this.publicSettings = publicSettings;
|
||||||
this.calculatedFields = [];
|
this.calculatedFields = [];
|
||||||
|
|
||||||
|
this.get = this.get.bind(this);
|
||||||
|
this.set = this.set.bind(this);
|
||||||
|
this.getAll = this.getAll.bind(this);
|
||||||
|
this.getPublic = this.getPublic.bind(this);
|
||||||
|
this.reset = this.reset.bind(this);
|
||||||
|
this._doGet = this._doGet.bind(this);
|
||||||
this._updateSettingFromModel = this._updateSettingFromModel.bind(this);
|
this._updateSettingFromModel = this._updateSettingFromModel.bind(this);
|
||||||
this._updateCalculatedField = this._updateCalculatedField.bind(this);
|
this._updateCalculatedField = this._updateCalculatedField.bind(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue