[CLOSED] Allow findAllMatchingFunctionsInText to iterate over array-like objects (#1390) #2216
Open
Description
Issue by jbalsas
Saturday Dec 08, 2012 at 23:07 GMT
Originally opened as adobe/brackets#2317
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
loop.
jbalsas included the following code: https://github.com/adobe/brackets/pull/2317/commits
Metadata
Assignees
Labels
No labels