diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2013-01-12 00:33:45 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2013-03-04 01:05:11 -0500 |
commit | c278a4461b399c5b84abf4e03c1d902bfd130441 (patch) | |
tree | 7982633aec7b9c658a72de0524dbd1848a676add /ui/jquery.ui.draggable.js | |
parent | 6d3a1e1fe8cc21f385456ea26075f3909136a589 (diff) | |
download | jquery-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.js | 14 |
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; |