Commit 4b95d127 authored by Tristan Cavelier's avatar Tristan Cavelier

useless var removed

parent 0836b371
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
function JIO(storage_spec, options) { function JIO(storage_spec, options) {
JIO.super_.call(this); JIO.super_.call(this);
var that = this, shared = new EventEmitter(); var shared = new EventEmitter();
shared.storage_spec = deepClone(storage_spec); shared.storage_spec = deepClone(storage_spec);
...@@ -16,15 +16,16 @@ function JIO(storage_spec, options) { ...@@ -16,15 +16,16 @@ function JIO(storage_spec, options) {
throw new TypeError("JIO(): Optional argument 2 is not of type 'object'"); throw new TypeError("JIO(): Optional argument 2 is not of type 'object'");
} }
enableRestAPI(that, shared, options); enableRestAPI(this, shared, options);
enableRestParamChecker(that, shared, options); enableRestParamChecker(this, shared, options);
enableJobMaker(that, shared, options); enableJobMaker(this, shared, options);
enableJobRetry(that, shared, options); enableJobReference(this, shared, options);
enableJobChecker(that, shared, options); enableJobRetry(this, shared, options);
enableJobQueue(that, shared, options); enableJobChecker(this, shared, options);
enableJobRecovery(that, shared, options); enableJobQueue(this, shared, options);
enableJobTimeout(that, shared, options); enableJobRecovery(this, shared, options);
enableJobExecuter(that, shared, options); enableJobTimeout(this, shared, options);
enableJobExecuter(this, shared, options);
shared.emit('load'); shared.emit('load');
} }
......
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