From b837b2179ac090b8096adcf6b5ee866855bb0135 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 23 Nov 2011 23:50:37 -0500 Subject: [PATCH] Added console.warn() output to dialog and placed newline after input, rather than before (to remove awkward newline) --- scripts/ui.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/ui.js b/scripts/ui.js index f2cfd13..46718b6 100644 --- a/scripts/ui.js +++ b/scripts/ui.js @@ -136,9 +136,16 @@ log: function( text ) { $console.text( - $console.text() + "\n" + text + $console.text() + text + "\n" ); - } + }, + + warn: function( text ) + { + $console.text( + $console.text() + "[Warning] " + text + "\n" + ); + }, }; ( function( console )