r3116 committed - selectable dev: removed unselecting when not clicking on an item - was...

r3116 committed - selectable dev: removed unselecting when not clicking on an item - was...


Revision: 3116
Author: paul.bakaus
Date: Sun Aug 23 03:56:04 2009
Log: selectable dev: removed unselecting when not clicking on an item - was
buggy and strange
http://code.google.com/p/jquery-ui/source/detail?r=3116
Modified:
/branches/dev/selectable/ui/ui.selectable.js
=======================================
--- /branches/dev/selectable/ui/ui.selectable.js    Sun Aug 23 03:01:34 2009
+++ /branches/dev/selectable/ui/ui.selectable.js    Sun Aug 23 03:56:04 2009
@@ -44,12 +44,7 @@
                .bind('mousedown.selectable', function(event) {
                    var item = self._targetIsItem(event.target);
-                    if (!item) {
-                        //TODO: Maybe make this an option?
-                        self._clearSelection();
-                        self._endSelection(event, null);
-                        return;
-                    }
+                    if (!item) return;
                    // If item is part of current selection and current
                 // selection is multiple, return and allow mouseup