public
Fork of sproutit/sproutcore
Description: JavaScript Application Framework - JS library only
Homepage: http://www.sproutcore.com
Clone URL: git://github.com/mauritslamers/sproutcore.git
Added selection prevention when SC.CollectionView is disabled.
Maurits Lamers (author)
Thu Nov 27 05:40:16 -0800 2008
commit  4b05e94bd452274080dafc7732447de00a0ec51f
tree    ffb4d52dcd88c918828d9e43801eba255b47b426
parent  f212cda55ee2716b9f866db3d66c61190d7cddf1
...
1794
1795
1796
 
 
 
1797
1798
1799
...
1794
1795
1796
1797
1798
1799
1800
1801
1802
0
@@ -1794,6 +1794,9 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate,
0
 
0
     this._mouseDownAt = Date.now();
0
 
0
+   // prevent any updates when disabled
0
+    if(!this.isEnabled) return true;
0
+    
0
     // holding down a modifier key while clicking a selected item should 
0
     // deselect that item...deselect and bail.
0
     if (modifierKeyPressed && isSelected) {

Comments