Skip to content
Permalink
Browse files

Merge 203ac7e into 8de2490

  • Loading branch information...
barhorn committed Nov 12, 2013
2 parents 8de2490 + 203ac7e commit 299948ac82381ea2c851d95c2ec03aed15b5a43e
Showing with 7 additions and 4 deletions.
  1. +7 −4 ui/jquery.ui.resizable.js
@@ -279,10 +279,13 @@ $.widget("ui.resizable", $.ui.mouse, {
capture = false;

for (i in this.handles) {
handle = $(this.handles[i])[0];
if (handle === event.target || $.contains(handle, event.target)) {
capture = true;
}
$(this.handles[i]).each(function(idxHandle,handle) {
if (handle === event.target || $.contains(handle, event.target)) {
capture = true;
return false; //get out of the $().each loop
}
});
if(capture) break; //we found one. Get out of the for loop
}

return !this.options.disabled && capture;

0 comments on commit 299948a

Please sign in to comment.
You can’t perform that action at this time.