Skip to content

Commit

Permalink
Fix regression introduced in 4e7fa2f
Browse files Browse the repository at this point in the history
  • Loading branch information
lehni committed Feb 14, 2016
1 parent 4e7fa2f commit 55e7689
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/item/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -2329,11 +2329,11 @@ new function() { // Injection scope for hit-test functions shared with project
} else {
// If the item is removed and inserted it again further
/// above, the index needs to be adjusted accordingly.
var parent = item._parent,
shift = parent === this && item._index < index;
var owner = item._getOwner(),
shift = owner === this && item._index < index;
// Notify parent of change. Don't notify item itself yet,
// as we're doing so when adding it to the new parent below.
if (parent && item._remove(false, true) && shift)
// as we're doing so when adding it to the new owner below.
if (owner && item._remove(false, true) && shift)
index--;
}
}
Expand Down

0 comments on commit 55e7689

Please sign in to comment.