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
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 theallFunctionsobject infindAllMatchingFunctionsInTextinto an array-like object, and due to the length property it fails to iterate using$.each.The fix substitutes the
$.eachfor afor..inloop.jbalsas included the following code: https://github.com/adobe/brackets/pull/2317/commits