Skip to content

Commit

Permalink
Fixup last commit
Browse files Browse the repository at this point in the history
prefAll return all the element in the reverse order, so we need to iterate
in the right order
  • Loading branch information
ogoffart committed Sep 22, 2016
1 parent 7548f1d commit 6fa0e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/codebrowser.js
Expand Up @@ -550,7 +550,7 @@ $(function () {
// Find the context: Look at up every line from the current one if
// there is a .def, if this definition is a declaration, it is the context
var prevLines = t.closest("tr").prevAll();
for (var x = prevLines.length - 1; x >= 0; --x) {
for (var x = 0; x < prevLines.length; ++x) {
var context = $(prevLines[x]).find(".def");
if (!context.length)
continue;
Expand Down

0 comments on commit 6fa0e7e

Please sign in to comment.