Skip to content
Permalink
Browse files

Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepick…

…er: _selectDate restores focus to non-object
  • Loading branch information
marcneuwirth authored and gnarf committed Jun 22, 2011
1 parent ab627e0 commit 5f0a2f01c4609315ab66158191d3f9bd420f827f
Showing with 1 addition and 2 deletions.
  1. +1 −2 ui/jquery.ui.datepicker.js
@@ -932,8 +932,7 @@ $.extend(Datepicker.prototype, {
else {
this._hideDatepicker();
this._lastInput = inst.input[0];
if (typeof(inst.input[0]) != 'object')
inst.input.focus(); // restore focus
inst.input.focus(); // restore focus
this._lastInput = null;
}
},

3 comments on commit 5f0a2f0

@tpetr

This comment has been minimized.

Copy link

@tpetr tpetr replied Dec 30, 2013

👊

@zackbloom

This comment has been minimized.

Copy link

@zackbloom zackbloom replied Dec 30, 2013

🚀

@adamschwartz

This comment has been minimized.

Copy link

@adamschwartz adamschwartz replied Apr 3, 2014

💯

Please sign in to comment.
You can’t perform that action at this time.