src/js/utils.js
changeset 31 cbb1425bc769
child 60 ffc038fdb8f1
equal deleted inserted replaced
30:69ac9ee00ec1 31:cbb1425bc769
       
     1 /* utils.js - various utils that don't belong anywhere else */
       
     2 
       
     3 /* trace function, for debugging */
       
     4 
       
     5 IriSP.traceNum = 0;
       
     6 IriSP.trace = function( msg, value ) {
       
     7 
       
     8 	if( IriSP.config.gui.debug === true ) {
       
     9 		IriSP.traceNum += 1;
       
    10 		IriSP.jQuery( "<div>"+IriSP.traceNum+" - "+msg+" : "+value+"</div>" ).appendTo( "#Ldt-output" );
       
    11 	}
       
    12 };
       
    13