mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
Fix Settings Framework example to display proper object path
This commit is contained in:
@@ -38,7 +38,7 @@ Now you can use the server-side settings-module to access the saved settings lik
|
|||||||
var mySettings = new Settings('myPlugin', '0.1', defaultSettings, function() {
|
var mySettings = new Settings('myPlugin', '0.1', defaultSettings, function() {
|
||||||
// the settings are ready and can accessed.
|
// the settings are ready and can accessed.
|
||||||
console.log(mySettings === this); // true
|
console.log(mySettings === this); // true
|
||||||
console.log(this.get('someString') === mySettings.get().someString); // true
|
console.log(this.get('strings.someString') === mySettings.get().strings.someString); // true
|
||||||
});
|
});
|
||||||
|
|
||||||
The second parameter should change at least every time the structure of default settings changes. Because of this it's
|
The second parameter should change at least every time the structure of default settings changes. Because of this it's
|
||||||
|
|||||||
Reference in New Issue
Block a user