diff options
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r-- | ui/ui.resizable.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index 847337b08..c9ab4c8a9 100644 --- a/ui/ui.resizable.js +++ b/ui/ui.resizable.js @@ -203,14 +203,14 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, { }, _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) { |