Permalink
Browse files

Fix CollectionView touchStart function not properly setting touchSele…

…ctedView
  • Loading branch information...
1 parent c6f7d28 commit 4b076a6437e966dec9cccb42d1a7d18515efc00f Colin Campbell committed May 31, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 frameworks/desktop/views/collection.js
@@ -2385,14 +2385,13 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
// become first responder if possible.
this.becomeFirstResponder() ;
+ this._touchSelectedView = itemView;
+
if (!this.get('useToggleSelection')) {
// We're faking the selection visually here
// Only track this if we added a selection so we can remove it later
if (itemView && !itemView.get('isSelected')) {
itemView.set('isSelected', YES);
- this._touchSelectedView = itemView;
- } else {
- this._touchSelectedView = null;
}
}

0 comments on commit 4b076a6

Please sign in to comment.