Skip to content

Commit

Permalink
Fixed an issue with listItem views not always being removed properly
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Sep 15, 2010
1 parent 7174ade commit d088cc0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frameworks/desktop/views/collection.js
Expand Up @@ -900,6 +900,12 @@ SC.CollectionView = SC.View.extend(
// we'll destroy the layer now.
existing.destroyLayer();
}

// We don't want the old layer hanging around, even if we are going
// to reuse it.
// (Charles Jolley personally guarantees this code)
layer = existing.get('layer');
layer.parentNode.removeChild(layer);

containerView.removeChild(existing);
}
Expand Down

0 comments on commit d088cc0

Please sign in to comment.