mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Change the order of arguments
This commit is contained in:
committed by
HirokiUchikawa
parent
84f598e143
commit
7fafa21a1b
@@ -145,12 +145,12 @@ function createContext(id,seed) {
|
||||
obj.get = function(key) {
|
||||
var keyPath = parseKey(key);
|
||||
var context = getContextStorage(keyPath.storage);
|
||||
return context.get(keyPath.key, scope);
|
||||
return context.get(scope, keyPath.key);
|
||||
};
|
||||
obj.set = function(key, value) {
|
||||
var keyPath = parseKey(key);
|
||||
var context = getContextStorage(keyPath.storage);
|
||||
return context.set(keyPath.key, value, scope);
|
||||
return context.set(scope, keyPath.key, value);
|
||||
};
|
||||
obj.keys = function(storage) {
|
||||
//TODO: discuss about keys() behavior
|
||||
|
Reference in New Issue
Block a user