Permalink
Browse files

g-selection: selecting the same item is now a no-op.

  • Loading branch information...
sorvell committed Jan 25, 2013
1 parent 06b3412 commit 0075c4c4c39afa1235e8afd3580099f6c530a5ff
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/g-selection.html
View
@@ -40,7 +40,7 @@
select: function(inItem) {
if (this.multi) {
this.toggle(inItem);
- } else {
+ } else if (this.getSelection() != inItem) {
this.setItemSelected(this.getSelection(), false);
this.setItemSelected(inItem, true);
}

0 comments on commit 0075c4c

Please sign in to comment.