adobe/brackets — pull request #2317 by jbalsas (2012-12-08 23:07:17+00:00)
Title: Allow findAllMatchingFunctionsInText to iterate over array-like objects (#1390)

This is a possible fix for #1390 where no results appear in the Go to Definition dialog.

The root cause is that in this case, there is a `.prototype.length = function ()` which turns the `allFunctions` object in `findAllMatchingFunctionsInText` into an array-like object, and due to the length property it fails to iterate using `$.each`.

The fix substitutes the `$.each` for a `for..in`.