src/js/utils.js
author hamidouk
Mon, 12 Sep 2011 17:20:08 +0200
changeset 35 e0b1fb87cdb0
parent 31 cbb1425bc769
child 60 ffc038fdb8f1
permissions -rw-r--r--
changed the template because mustache escaped html strings.

/* utils.js - various utils that don't belong anywhere else */

/* trace function, for debugging */

IriSP.traceNum = 0;
IriSP.trace = function( msg, value ) {

	if( IriSP.config.gui.debug === true ) {
		IriSP.traceNum += 1;
		IriSP.jQuery( "<div>"+IriSP.traceNum+" - "+msg+" : "+value+"</div>" ).appendTo( "#Ldt-output" );
	}
};