Browse Source

Bug fix for null parent (#3342)

revert-3409-performance
Danny Larsen 6 years ago
committed by Yotam Berkowitz
parent
commit
97f33d292d
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      lib/timeline/component/item/Item.js

+ 4
- 1
lib/timeline/component/item/Item.js View File

@ -64,7 +64,10 @@ Item.prototype.setData = function(data) {
if (groupChanged && this.parent != null) {
this.parent.itemSet._moveToGroup(this, data.group);
}
this.parent.stackDirty = true;
if (this.parent) {
this.parent.stackDirty = true;
}
var subGroupChanged = data.subgroup != undefined && this.data.subgroup != data.subgroup;
if (subGroupChanged && this.parent != null) {

Loading…
Cancel
Save