Browse Source

Moved some variables from ItemBox to Item

css_transitions
josdejong 10 years ago
parent
commit
264cdd30b6
2 changed files with 3 additions and 4 deletions
  1. +3
    -1
      src/timeline/component/item/Item.js
  2. +0
    -3
      src/timeline/component/item/ItemBox.js

+ 3
- 1
src/timeline/component/item/Item.js View File

@ -15,7 +15,9 @@ function Item (parent, data, options, defaultOptions) {
this.defaultOptions = defaultOptions || {};
this.selected = false;
this.visible = false;
this.displayed = false;
this.dirty = true;
this.top = null;
this.left = null;
this.width = null;

+ 0
- 3
src/timeline/component/item/ItemBox.js View File

@ -20,9 +20,6 @@ function ItemBox (parent, data, options, defaultOptions) {
}
};
this.displayed = false;
this.dirty = true;
// validate data
if (data.start == undefined) {
throw new Error('Property "start" missing in item ' + data);

Loading…
Cancel
Save