From 0253e0e4d7aa19e45cb8412295e26bb80b2be796 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 15 Sep 2015 05:25:55 +0000 Subject: [PATCH] Added some documetnation --- plugins/c9.ide.preferences/experimental.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/c9.ide.preferences/experimental.js b/plugins/c9.ide.preferences/experimental.js index 29dcde3a..74a8c922 100644 --- a/plugins/c9.ide.preferences/experimental.js +++ b/plugins/c9.ide.preferences/experimental.js @@ -60,9 +60,13 @@ define(function(require, exports, module) { current[parts[i]] = current = {}; } current.type = "checkbox"; - current.setting = "state/experiments/" + name.toLowerCase().replace(/\//g, "-"); + current.setting = "state/experiments/" + query.split("=")[0].replace(/\//g, "-"); plugin.add(obj); + + // TODO return the value of the query (to be checked in the location or the settings): + // =0 means the value should be set to 0 to disable otherwise it is enabled + // =1 means the value should be set to 1 to enable otherwise it is disabled } /***** Lifecycle *****/