diff --git a/src/graph/Groups.js b/src/graph/Groups.js index bc61b56c..ee8fc3ae 100644 --- a/src/graph/Groups.js +++ b/src/graph/Groups.js @@ -2,10 +2,10 @@ * @class Groups * This class can store groups and properties specific for groups. */ -Groups = function () { +function Groups() { this.clear(); this.defaultIndex = 0; -}; +} /** diff --git a/src/graph/Images.js b/src/graph/Images.js index 48517dde..0c661b65 100644 --- a/src/graph/Images.js +++ b/src/graph/Images.js @@ -2,11 +2,11 @@ * @class Images * This class loads images and keeps them stored. */ -Images = function () { +function Images() { this.images = {}; this.callback = undefined; -}; +} /** * Set an onload callback function. This will be called each time an image diff --git a/src/timeline/TimeStep.js b/src/timeline/TimeStep.js index b22a1f37..958a3a5f 100644 --- a/src/timeline/TimeStep.js +++ b/src/timeline/TimeStep.js @@ -24,7 +24,7 @@ * @param {Date} [end] The end date * @param {Number} [minimumStep] Optional. Minimum step size in milliseconds */ -TimeStep = function(start, end, minimumStep) { +function TimeStep(start, end, minimumStep) { // variables this.current = new Date(); this._start = new Date(); @@ -36,7 +36,7 @@ TimeStep = function(start, end, minimumStep) { // initialize the range this.setRange(start, end, minimumStep); -}; +} /// enum scale TimeStep.SCALE = {