Change the order of arguments

This commit is contained in:
Hiroki Uchikawa
2018-05-23 11:42:53 +09:00
committed by HirokiUchikawa
parent 84f598e143
commit 7fafa21a1b
6 changed files with 72 additions and 73 deletions

View File

@@ -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