src/js/utils.js
author hamidouk
Mon, 12 Sep 2011 16:25:33 +0200
changeset 33 184bffe80bf3
parent 31 cbb1425bc769
child 60 ffc038fdb8f1
permissions -rw-r--r--
changed build file to 1) use ant-contrib 2) to transform the html files in src/templates to javascript 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" );
	}
};