aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.draggable.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2013-01-12 00:33:45 -0500
committerMike Sherov <mike.sherov@gmail.com>2013-03-04 01:05:11 -0500
commitc278a4461b399c5b84abf4e03c1d902bfd130441 (patch)
tree7982633aec7b9c658a72de0524dbd1848a676add /ui/jquery.ui.draggable.js
parent6d3a1e1fe8cc21f385456ea26075f3909136a589 (diff)
downloadjquery-ui-c278a4461b399c5b84abf4e03c1d902bfd130441.tar.gz
jquery-ui-c278a4461b399c5b84abf4e03c1d902bfd130441.zip
Draggable Tests: Add test coverage for supported options
Diffstat (limited to 'ui/jquery.ui.draggable.js')
-rw-r--r--ui/jquery.ui.draggable.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js
index 27b6b4ef0..7c1fb3361 100644
--- a/ui/jquery.ui.draggable.js
+++ b/ui/jquery.ui.draggable.js
@@ -283,14 +283,12 @@ $.widget("ui.draggable", $.ui.mouse, {
_getHandle: function(event) {
var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false;
- $(this.options.handle, this.element)
- .find("*")
- .addBack()
- .each(function() {
- if(this === event.target) {
- handle = true;
- }
- });
+
+ this.element.find( this.options.handle ).each(function() {
+ if(this === event.target) {
+ handle = true;
+ }
+ });
return handle;