r2047 - in trunk: tests/unit/resizable ui

r2047 - in trunk: tests/unit/resizable ui


Author: scott.gonzalez
Date: Sun Feb 8 17:36:51 2009
New Revision: 2047
Modified:
trunk/tests/unit/resizable/resizable_defaults.js
trunk/ui/ui.resizable.js
Log:
Resizable: Fixed #4093: Removed disableSelection option.
Modified: trunk/tests/unit/resizable/resizable_defaults.js
==============================================================================
--- trunk/tests/unit/resizable/resizable_defaults.js    (original)
+++ trunk/tests/unit/resizable/resizable_defaults.js    Sun Feb 8 17:36:51
2009
@@ -13,7 +13,6 @@
    containment: false,
    delay: 0,
    disabled: false,
-    disableSelection: true,
    distance: 1,
    ghost: false,
    grid: false,
Modified: trunk/ui/ui.resizable.js
==============================================================================
--- trunk/ui/ui.resizable.js    (original)
+++ trunk/ui/ui.resizable.js    Sun Feb 8 17:36:51 2009
@@ -137,10 +137,8 @@
        //TODO: make renderAxis a prototype function
        this._renderAxis(this.element);
-        this._handles = $('.ui-resizable-handle', this.element);
-
-        if (o.disableSelection)
-            this._handles.disableSelection();
+        this._handles = $('.ui-resizable-handle', this.element)
+            .disableSelection();
        //Matching axis name
        this._handles.mouseover(function() {
@@ -438,10 +436,9 @@
                zIndex: ++o.zIndex //TODO: Don't modify option
            });
-            this.helper.appendTo("body");
-
-            if (o.disableSelection)
-                this.helper.disableSelection();
+            this.helper
+                .appendTo("body")
+                .disableSelection();
        } else {
            this.helper = this.element;
@@ -512,7 +509,6 @@
        cancel: ":input,option",
        containment: false,
        delay: 0,
-        disableSelection: true,
        distance: 1,
        ghost: false,
        grid: false,