Got these backwards.
This commit is contained in:
parent
037ffb2f7f
commit
acce2e2c86
2 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ var fedmenu = function(options) { $(document).ready(function() {
|
|||
$.each(master_data, function(i, node) {
|
||||
$.each(node.children, function(j, leaf) {
|
||||
var theirs = normalize(leaf.data.url);
|
||||
if (theirs.indexOf(ours) === 0) found = leaf;
|
||||
if (ours.indexOf(theirs) === 0) found = leaf;
|
||||
})
|
||||
});
|
||||
return found;
|
||||
|
|
|
@ -141,7 +141,7 @@ var fedmenu = function(options) { $(document).ready(function() {
|
|||
$.each(master_data, function(i, node) {
|
||||
$.each(node.children, function(j, leaf) {
|
||||
var theirs = normalize(leaf.data.url);
|
||||
if (theirs.indexOf(ours) === 0) found = leaf;
|
||||
if (ours.indexOf(theirs) === 0) found = leaf;
|
||||
})
|
||||
});
|
||||
return found;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue