r3114 committed - selectable dev: fixed small issue that produced a js error with a spec...

r3114 committed - selectable dev: fixed small issue that produced a js error with a spec...


Revision: 3114
Author: paul.bakaus
Date: Sun Aug 23 02:56:17 2009
Log: selectable dev: fixed small issue that produced a js error with a
special case of ctrl+shift selecting
http://code.google.com/p/jquery-ui/source/detail?r=3114
Modified:
/branches/dev/selectable/ui/ui.selectable.js
=======================================
--- /branches/dev/selectable/ui/ui.selectable.js    Sun Aug 23 02:26:34 2009
+++ /branches/dev/selectable/ui/ui.selectable.js    Sun Aug 23 02:56:17 2009
@@ -487,7 +487,7 @@
            }
-            return $($.map(newlySelected, function(i) { return i[0]; }));
+            return $($.map(newlySelected, function(i) { if(i) return i[0]; }));
        },