Skip to content

Commit

Permalink
Fix homeCrumbLink not set when it is created automatically
Browse files Browse the repository at this point in the history
This will cause an error to be throw when interactiing with the nav.
  • Loading branch information
kabel committed Jan 13, 2016
1 parent eed9448 commit b042326
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wdn/templates_4.1/scripts/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ define(['jquery', 'wdn', 'modernizr', 'require'], function($, WDN, Modernizr, re
}

if (!$homepageCrumbLink.length) {
$li.wrapInner($('<a>', {href : siteHomepage}));
$homepageCrumbLink = $('<a>', {href : siteHomepage});
$li.wrapInner($homepageCrumbLink);
}
};

Expand Down

0 comments on commit b042326

Please sign in to comment.