What happens if focus goes to some other place, like a field in Settings tab, or out of the window completely? An idea to listen for focusout based on focus from another element sounds fishy to me. Also, you hasn't removed ` $('#search-input').focusout(this.onFocusOut_.bind(this));` above, so you must be getting this event on any focusout.

The correct way to deal with it seems to somehow check whether the focus remains within `.search-container`...