Browse Source

Fixed some Prototypes from being globally defined

css_transitions
jos 10 years ago
parent
commit
409e602513
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      src/graph/Groups.js
  2. +2
    -2
      src/graph/Images.js
  3. +2
    -2
      src/timeline/TimeStep.js

+ 2
- 2
src/graph/Groups.js View File

@ -2,10 +2,10 @@
* @class Groups * @class Groups
* This class can store groups and properties specific for groups. * This class can store groups and properties specific for groups.
*/ */
Groups = function () {
function Groups() {
this.clear(); this.clear();
this.defaultIndex = 0; this.defaultIndex = 0;
};
}
/** /**

+ 2
- 2
src/graph/Images.js View File

@ -2,11 +2,11 @@
* @class Images * @class Images
* This class loads images and keeps them stored. * This class loads images and keeps them stored.
*/ */
Images = function () {
function Images() {
this.images = {}; this.images = {};
this.callback = undefined; this.callback = undefined;
};
}
/** /**
* Set an onload callback function. This will be called each time an image * Set an onload callback function. This will be called each time an image

+ 2
- 2
src/timeline/TimeStep.js View File

@ -24,7 +24,7 @@
* @param {Date} [end] The end date * @param {Date} [end] The end date
* @param {Number} [minimumStep] Optional. Minimum step size in milliseconds * @param {Number} [minimumStep] Optional. Minimum step size in milliseconds
*/ */
TimeStep = function(start, end, minimumStep) {
function TimeStep(start, end, minimumStep) {
// variables // variables
this.current = new Date(); this.current = new Date();
this._start = new Date(); this._start = new Date();
@ -36,7 +36,7 @@ TimeStep = function(start, end, minimumStep) {
// initialize the range // initialize the range
this.setRange(start, end, minimumStep); this.setRange(start, end, minimumStep);
};
}
/// enum scale /// enum scale
TimeStep.SCALE = { TimeStep.SCALE = {

Loading…
Cancel
Save