1
0
Fork 0

Added console.warn() output to dialog and placed newline after input, rather than before (to remove awkward newline)

website
Mike Gerwitz 2011-11-23 23:50:37 -05:00
parent bdc4c37b21
commit b837b2179a
1 changed files with 9 additions and 2 deletions

View File

@ -136,9 +136,16 @@
log: function( text ) log: function( text )
{ {
$console.text( $console.text(
$console.text() + "\n" + text $console.text() + text + "\n"
); );
} },
warn: function( text )
{
$console.text(
$console.text() + "[Warning] " + text + "\n"
);
},
}; };
( function( console ) ( function( console )