|
@ -10,9 +10,9 @@ var CurrentTime = require('./component/CurrentTime'); |
|
|
var CustomTime = require('./component/CustomTime'); |
|
|
var CustomTime = require('./component/CustomTime'); |
|
|
var ItemSet = require('./component/ItemSet'); |
|
|
var ItemSet = require('./component/ItemSet'); |
|
|
|
|
|
|
|
|
var ConfigurationSystem = require('../network/modules/ConfigurationSystem'); |
|
|
|
|
|
var Validator = require('../network/modules/Validator').default; |
|
|
|
|
|
var printStyle = require('../network/modules/Validator').printStyle; |
|
|
|
|
|
|
|
|
var ConfigurationSystem = require('../shared/ConfigurationSystem'); |
|
|
|
|
|
var Validator = require('../shared/Validator').default; |
|
|
|
|
|
var printStyle = require('../shared/Validator').printStyle; |
|
|
var allOptions = require('./options').allOptions; |
|
|
var allOptions = require('./options').allOptions; |
|
|
var configureOptions = require('./options').configureOptions; |
|
|
var configureOptions = require('./options').configureOptions; |
|
|
|
|
|
|
|
@ -156,8 +156,7 @@ Timeline.prototype.setOptions = function (options) { |
|
|
// validate options
|
|
|
// validate options
|
|
|
let errorFound = Validator.validate(options, allOptions); |
|
|
let errorFound = Validator.validate(options, allOptions); |
|
|
if (errorFound === true) { |
|
|
if (errorFound === true) { |
|
|
options = {}; |
|
|
|
|
|
console.log('%cErrors have been found in the supplied options object. None of the options will be used.', printStyle); |
|
|
|
|
|
|
|
|
console.log('%cErrors have been found in the supplied options object.', printStyle); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Core.prototype.setOptions.call(this, options); |
|
|
Core.prototype.setOptions.call(this, options); |
|
|