Commit 5b03f4fd authored by Tristan Cavelier's avatar Tristan Cavelier

fix jioNamespace bug, constructor called with a wrong var

parent 01a2df51
......@@ -29,11 +29,13 @@ var jioNamespace = (function (spec) {
instance = null;
if (typeof storage === 'string') {
storage = JSON.parse(storage);
} else {
storage = JSON.parse(JSON.stringify(storage));
}
storage = storage || {
type: 'base'
};
instance = jio(spec);
instance = jio(storage);
instance.start();
return instance;
}
......@@ -64,4 +66,4 @@ var jioNamespace = (function (spec) {
});
return that;
}());
\ No newline at end of file
}());
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment