Make blocktype work with numbers

This commit is contained in:
walterhiggins 2015-11-08 16:23:02 +00:00
parent e8895d77c0
commit 4aa28c0af3

View file

@ -294,6 +294,18 @@ var bitmaps = {
' '+ ' '+
' '+ ' '+
' ', ' ',
'(': ' # '+
' # '+
' # '+
' # '+
' # ',
')': ' # '+
' # '+
' # '+
' # '+
' # ',
' ':' '+ ' ':' '+
' '+ ' '+
@ -352,7 +364,7 @@ function blocktype( message, fg, bg, immediate ) {
if ( typeof bg != 'undefined' ) { if ( typeof bg != 'undefined' ) {
bmbg = this.getBlockIdAndMeta( bg ); bmbg = this.getBlockIdAndMeta( bg );
} }
lines = message.split( '\n' ); lines = (''+ message).split( '\n' );
lineCount = lines.length; lineCount = lines.length;
for ( h = 0; h < lineCount; h++) { for ( h = 0; h < lineCount; h++) {