From 8c16abbfeea488ef856e37c6da27eab578c8d6d3 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Thu, 5 Dec 2013 12:37:55 +0100 Subject: [PATCH] bugfix for only call showMessage if it was defined --- src/util/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util.js b/src/util/util.js index bc9572aa..eb308701 100644 --- a/src/util/util.js +++ b/src/util/util.js @@ -267,7 +267,7 @@ var Util = function() { } html = "

"+heading+":"+str+"

"; } - if (showMessages) { + if (typeof showMessages === "function") { // only call function if defined showMessages(html); }