From d1079c00bcb9f8f6928f2034c4a5c93643525227 Mon Sep 17 00:00:00 2001 From: Schamper Date: Thu, 8 May 2014 20:37:10 +0200 Subject: [PATCH] Fix Settings Framework example to display proper object path --- docs/plugins/settings.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugins/settings.rst b/docs/plugins/settings.rst index ad1954d853..f761f8115d 100644 --- a/docs/plugins/settings.rst +++ b/docs/plugins/settings.rst @@ -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() { // the settings are ready and can accessed. 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