Commit add5497c authored by Tristan Cavelier's avatar Tristan Cavelier

Fix bug: jobManager can use storage constructors correctly

parent 060bb605
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
return storage_type_object[type](spec, my); return storage_type_object[type](spec, my);
} }
}); });
jobManager.storage = that.storage;
Object.defineProperty(that,"start",{ Object.defineProperty(that,"start",{
configurable:false,enumerable:false,writable:false,value: configurable:false,enumerable:false,writable:false,value:
......
var storage_type_object = { // -> 'key':constructorFunction var storage_type_object = { // -> 'key':constructorFunction
'base': function () {} // overidden by jio 'base': function () {} // overriden by jio
}; };
var jioNamespace = (function(spec) { var jioNamespace = (function(spec) {
var that = {}; var that = {};
......
...@@ -139,7 +139,7 @@ var jobManager = (function(spec) { ...@@ -139,7 +139,7 @@ var jobManager = (function(spec) {
var command_object = command(jio_job_array[i].command); var command_object = command(jio_job_array[i].command);
if (command_object.canBeRestored()) { if (command_object.canBeRestored()) {
that.addJob ( job( that.addJob ( job(
{storage:jio.storage(jio_job_array[i].storage), {storage:that.storage(jio_job_array[i].storage),
command:command_object})); command:command_object}));
} }
} }
......
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