This is bit ambiguouse. doSearchWhenEmpty is used to handle the display attribute of the div (Line 290 if block). So indirectly trigger via doSearchWhenEmpty. But not sure why checking display status here. Any way need to add  "&& ($j.trim(input.val()) == '')" for correctness of this.