Skip to content
Permalink
Browse files
Merge 203ac7e into 8de2490
  • Loading branch information
barhorn committed Nov 12, 2013
2 parents 8de2490 + 203ac7e commit 299948a
Showing 1 changed file with 7 additions and 4 deletions.
@@ -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.