From dfc90863cb89979becf03caf630f053d804f536c Mon Sep 17 00:00:00 2001 From: Nick Bailey Date: Fri, 12 Jan 2018 20:59:37 +0000 Subject: [PATCH] Work around IE11 not permitting default values for javascript function parameters --- bibtexParse.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bibtexParse.js b/bibtexParse.js index ad85a93..4bac1ac 100644 --- a/bibtexParse.js +++ b/bibtexParse.js @@ -320,7 +320,8 @@ /* Increased the amount of white-space to make entries * more attractive to humans. Pass compact as false * to enable */ - exports.toBibtex = function(json, compact=true) { + exports.toBibtex = function(json, compact) { + if (compact === undefined) compact = true; var out = ''; var entrysep = ',';