This test is now back in the calling function (where it was originally), so I will remove it here.  I had done what you see so that the Tern jump-to-definition part of the search might also find var names, but that turned out to have other problems.  So, QuickEdit only finds function names, as it always has.