Fix: constructor arguments can be null

This commit is contained in:
2014-12-09 13:05:34 +05:30
parent 2b489b9945
commit d20637e18c
+1
View File
@@ -5,6 +5,7 @@ var utils = require('./utils');
var STATE = utils.createEnum([ 'RUNNING', 'PAUSED', 'NOT_RUNNING']);
function JobManager(opts){
opts = opts || {};
//opts
this.notifyAt = opts.notifyAt|| 3;