r3149 committed - selectable dev: removed multiple option

r3149 committed - selectable dev: removed multiple option


Revision: 3149
Author: paul.bakaus
Date: Thu Aug 27 07:14:03 2009
Log: selectable dev: removed multiple option
http://code.google.com/p/jquery-ui/source/detail?r=3149
Modified:
/branches/dev/selectable/tests/unit/selectable/selectable_defaults.js
/branches/dev/selectable/ui/ui.selectable.js
=======================================
--- /branches/dev/selectable/tests/unit/selectable/selectable_defaults.js    
Sun Aug 23 02:26:34 2009
+++ /branches/dev/selectable/tests/unit/selectable/selectable_defaults.js    
Thu Aug 27 07:14:03 2009
@@ -3,7 +3,6 @@
*/
var selectable_defaults = {
-    multiple: true,
    closest: true,
    filter: '> *',
    disabled: false,
=======================================
--- /branches/dev/selectable/ui/ui.selectable.js    Thu Aug 27 07:12:19 2009
+++ /branches/dev/selectable/ui/ui.selectable.js    Thu Aug 27 07:14:03 2009
@@ -416,7 +416,7 @@
            var newlySelected = [];
-            if (event && event.shiftKey && this.options.multiple) {
+            if (event && event.shiftKey) {
                //Clear the previous selection to make room for a shift selection
                this._clearSelection();
@@ -452,7 +452,7 @@
            var newlySelected = [];
-            if (event && event.shiftKey && this.options.multiple) {
+            if (event && event.shiftKey) {
                if (this.currentFocus.data('selectable-item').selected) {
                    this._removeFromSelection(this.previousFocus, event);
@@ -640,8 +640,6 @@
    $.extend($.ui.selectable, {
        defaults: {
-
-            multiple: true,
            closest: true,
            filter: '> *',