r2153 - trunk/ui

r2153 - trunk/ui


Author: rdworth
Date: Sat Feb 28 13:23:19 2009
New Revision: 2153
Modified:
trunk/ui/ui.resizable.js
Log:
resizable: add ui-resizable-resizing class during resize
Modified: trunk/ui/ui.resizable.js
==============================================================================
--- trunk/ui/ui.resizable.js    (original)
+++ trunk/ui/ui.resizable.js    Sat Feb 28 13:23:19 2009
@@ -177,7 +177,7 @@
        this._mouseDestroy();
        var _destroy = function(exp) {
-            $(exp).removeClass("ui-resizable ui-resizable-disabled")
+            $(exp).removeClass("ui-resizable ui-resizable-disabled
ui-resizable-resizing")
            
    .removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
        };
@@ -252,6 +252,7 @@
     var cursor = $('.ui-resizable-' + this.axis).css('cursor');
     $('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' :
cursor);
+        el.addClass("ui-resizable-resizing");
        this._propagate("start", event);
        return true;
    },
@@ -314,6 +315,8 @@
        }
        $('body').css('cursor', 'auto');
+
+        this.element.removeClass("ui-resizable-resizing");
        this._propagate("stop", event);