|
31
|
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 |
|
|
60
|
14 |
/* for ie compatibility |
|
|
15 |
if (Object.prototype.__defineGetter__&&!Object.defineProperty) { |
|
|
16 |
Object.defineProperty=function(obj,prop,desc) { |
|
|
17 |
if ("get" in desc) obj.__defineGetter__(prop,desc.get); |
|
|
18 |
if ("set" in desc) obj.__defineSetter__(prop,desc.set); |
|
|
19 |
} |
|
|
20 |
} |
|
|
21 |
*/ |