From 6a9ef52fe8341a8b79e929a711984458d9025a8a Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 5 Dec 2011 18:08:07 +0100 Subject: [PATCH] don't use console without checks --- lib/ace/mode/folding/xml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/mode/folding/xml.js b/lib/ace/mode/folding/xml.js index c08ed01d..97e3c79d 100644 --- a/lib/ace/mode/folding/xml.js +++ b/lib/ace/mode/folding/xml.js @@ -154,7 +154,7 @@ oop.inherits(FoldMode, BaseFoldMode); } else { if (!(isBack && voidElements[tagName])) - console.error("unmatched tags!", tagName, stack); + typeof console !== undefined && console.error("unmatched tags!", tagName, stack); } } else {