r2050 - trunk/ui

r2050 - trunk/ui


Author: eduardolundgren
Date: Sun Feb 8 19:59:16 2009
New Revision: 2050
Modified:
trunk/ui/ui.resizable.js
Log:
Resizable: Fixed #4092 - preserveCursor option should be removed
Modified: trunk/ui/ui.resizable.js
==============================================================================
--- trunk/ui/ui.resizable.js    (original)
+++ trunk/ui/ui.resizable.js    Sun Feb 8 19:59:16 2009
@@ -243,10 +243,8 @@
        //Aspect Ratio
        this.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio :
((this.originalSize.width / this.originalSize.height) || 1);
-        if (o.preserveCursor) {
-         var cursor = $('.ui-resizable-' + this.axis).css('cursor');
-         $('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' :
cursor);
-        }
+     var cursor = $('.ui-resizable-' + this.axis).css('cursor');
+     $('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' :
cursor);
        this._propagate("start", event);
        return true;
@@ -309,8 +307,7 @@
            if (this._helper && !o.animate) this._proportionallyResize();
        }
-        if (o.preserveCursor)
-            $('body').css('cursor', 'auto');
+        $('body').css('cursor', 'auto');
        this._propagate("stop", event);
@@ -514,7 +511,6 @@
        maxWidth: null,
        minHeight: 10,
        minWidth: 10,
-        preserveCursor: true,
        preventDefault: true,
        proportionallyResize: false,
        zIndex: 1000