From aa903dc6be7db7940bf238fef78c8aa0575a62ad Mon Sep 17 00:00:00 2001 From: David Glasser Date: Thu, 27 Mar 2014 12:59:21 -0700 Subject: [PATCH] docs: Fix trailing comma (breaks IE8) --- docs/client/docs.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/client/docs.js b/docs/client/docs.js index 5d78f53055..3c004adca7 100644 --- a/docs/client/docs.js +++ b/docs/client/docs.js @@ -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 {