mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
docs: Fix trailing comma (breaks IE8)
This commit is contained in:
@@ -212,7 +212,7 @@ var toc = [
|
||||
"Accounts.onCreateUser",
|
||||
"Accounts.validateLoginAttempt",
|
||||
"Accounts.onLogin",
|
||||
{name: "Accounts.onLoginFailure", id: "accounts_onlogin"},
|
||||
{name: "Accounts.onLoginFailure", id: "accounts_onlogin"}
|
||||
],
|
||||
|
||||
{name: "Passwords", id: "accounts_passwords"}, [
|
||||
@@ -380,6 +380,10 @@ Template.nav.sections = function () {
|
||||
var ret = [];
|
||||
var walk = function (items, depth) {
|
||||
_.each(items, function (item) {
|
||||
// Work around (eg) accidental trailing commas leading to spurious holes
|
||||
// in IE8.
|
||||
if (!item)
|
||||
return;
|
||||
if (item instanceof Array)
|
||||
walk(item, depth + 1);
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user