aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/datepicker
diff options
context:
space:
mode:
authorSteven Luscher <jquerycla@steveluscher.com>2013-05-01 15:01:32 -0700
committerMike Sherov <mike.sherov@gmail.com>2013-06-19 18:07:38 -0400
commitfcd1cafac8afe3a947676ec018e844eeada5b9de (patch)
tree4dee58eb628ea32edb7f0ac6f22def8aba2d3d55 /tests/unit/datepicker
parentbca3e058e89bf40806170149b8029dfe52644248 (diff)
downloadjquery-ui-fcd1cafac8afe3a947676ec018e844eeada5b9de.tar.gz
jquery-ui-fcd1cafac8afe3a947676ec018e844eeada5b9de.zip
Draggable: active element blurs when clicking on a draggable. Fixes #4261 - Draggable: Inputs do not blur when clicking on a draggable
Diffstat (limited to 'tests/unit/datepicker')
-rw-r--r--tests/unit/datepicker/datepicker_test_helpers.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/unit/datepicker/datepicker_test_helpers.js b/tests/unit/datepicker/datepicker_test_helpers.js
index 9cb63c9ec..34b41bbc6 100644
--- a/tests/unit/datepicker/datepicker_test_helpers.js
+++ b/tests/unit/datepicker/datepicker_test_helpers.js
@@ -22,16 +22,6 @@ TestHelpers.datepicker = {
var id = $( "<input>" ).appendTo( "#qunit-fixture" );
return TestHelpers.datepicker.init( id, options );
},
- onFocus: function( element, onFocus ) {
- var fn = function( event ){
- if( !event.originalEvent ) {
- return;
- }
- element.unbind( "focus", fn );
- onFocus();
- };
-
- element.bind( "focus", fn )[ 0 ].focus();
- },
+ onFocus: TestHelpers.onFocus,
PROP_NAME: "datepicker"
}; \ No newline at end of file