From ee9adaa8cc2fc2628c31eec8443f6ab773182146 Mon Sep 17 00:00:00 2001 From: Jerry Jalava Date: Tue, 11 Dec 2007 20:01:21 +0200 Subject: [PATCH] Debug uses now pretty printing for better readability for objects --- js/ajatus.core.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/js/ajatus.core.js b/js/ajatus.core.js index e7f3c31..9319db4 100644 --- a/js/ajatus.core.js +++ b/js/ajatus.core.js @@ -14,7 +14,7 @@ /* TODO Tags are links - TODO Additional fields [widget, support] + TODO Additional fields [widget] TODO Skype widget -bergie TODO Formatter service TODO XMMP & Email formatter @@ -22,7 +22,6 @@ TODO Implement arhive view TODO Implement file attachments TODO Documentation (API) - TODO Auto-saving to forms (after 5 mins) */ if (typeof console == 'undefined') { @@ -698,7 +697,12 @@ if (typeof console == 'undefined') { if (typeof title != 'undefined') { string += title += ': '; } - string += msg; + if (typeof msg != 'string') { + string += $.ajatus.utils.pretty_print(msg); + } else { + string += msg; + } + return string; } -- 2.11.4.GIT