r3102 committed - dev selectables: a complete deselection is now supported by clicking o...
Revision: 3102
Author: paul.bakaus
Date: Fri Aug 21 06:29:54 2009
Log: dev selectables: a complete deselection is now supported by clicking
on the selectable, but not on a valid item
http://code.google.com/p/jquery-ui/source/detail?r=3102
Modified:
/branches/dev/selectable/ui/ui.selectable.js
=======================================
--- /branches/dev/selectable/ui/ui.selectable.js Fri Aug 21 06:20:46 2009
+++ /branches/dev/selectable/ui/ui.selectable.js Fri Aug 21 06:29:54 2009
@@ -36,7 +36,11 @@
.bind('mousedown.selectable', function(event) {
var item = self._targetIsItem(event.target);
- if (!item) return;
+ if (!item) {
+ self._clearSelection();
+ self._endSelection(event, null);
+ return;
+ }
// If item is part of current selection and current
// selection is multiple, return and allow mouseup