r3026 committed - Resizable: Don't allow resizing when disabled. Fixes #4743 - Disable ...
Revision: 3026
Author: scott.gonzalez
Date: Mon Aug 3 19:02:57 2009
Log: Resizable: Don't allow resizing when disabled. Fixes #4743 - Disable
Resize.
http://code.google.com/p/jquery-ui/source/detail?r=3026
Modified:
/trunk/ui/ui.resizable.js
=======================================
--- /trunk/ui/ui.resizable.js Mon Jun 8 17:46:00 2009
+++ /trunk/ui/ui.resizable.js Mon Aug 3 19:02:57 2009
@@ -203,14 +203,14 @@
},
_mouseCapture: function(event) {
-
var handle = false;
- for(var i in this.handles) {
- if($(this.handles[i])[0] == event.target) handle = true;
+ for (var i in this.handles) {
+ if ($(this.handles[i])[0] == event.target) {
+ handle = true;
+ }
}
- return this.options.disabled || !!handle;
-
+ return !this.options.disabled && handle;
},
_mouseStart: function(event) {