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 5f0a2f0
Showing 1 changed file with 1 addition and 2 deletions.
@@ -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
Copy link

@tpetr tpetr commented on 5f0a2f0 Dec 30, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👊

@zackbloom
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@adamschwartz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

Please sign in to comment.