diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-12-14 11:13:46 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-12-14 11:13:50 -0500 |
commit | 8ec7a1b69ffd86edbef06e30ca4368600531e649 (patch) | |
tree | f1141afd8ad47e88261338907aadb35a0f1b9f18 /ui/jquery.ui.slider.js | |
parent | 80e46c93a84c8720cbd4aa206c46e4ac2a2d84f7 (diff) | |
download | jquery-ui-8ec7a1b69ffd86edbef06e30ca4368600531e649.tar.gz jquery-ui-8ec7a1b69ffd86edbef06e30ca4368600531e649.zip |
All: Use .addBack() instead of .andSelf().
Diffstat (limited to 'ui/jquery.ui.slider.js')
-rw-r--r-- | ui/jquery.ui.slider.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index 02fee8364..4054f1848 100644 --- a/ui/jquery.ui.slider.js +++ b/ui/jquery.ui.slider.js @@ -256,7 +256,7 @@ $.widget( "ui.slider", $.ui.mouse, { .focus(); offset = closestHandle.offset(); - mouseOverHandle = !$( event.target ).parents().andSelf().is( ".ui-slider-handle" ); + mouseOverHandle = !$( event.target ).parents().addBack().is( ".ui-slider-handle" ); this._clickOffset = mouseOverHandle ? { left: 0, top: 0 } : { left: event.pageX - offset.left - ( closestHandle.width() / 2 ), top: event.pageY - offset.top - |