- LSdebug() : alert() dans IE

- getFData() : Correction d'un bug IE
This commit is contained in:
Benjamin Renard 2008-11-14 16:55:09 +00:00
parent cc5ba69872
commit 6b5a299f76

View file

@ -2,10 +2,15 @@ var LSdebug_active = 0;
function LSdebug(arguments) { function LSdebug(arguments) {
if (LSdebug_active != 1) return; if (LSdebug_active != 1) return;
if (typeof console != 'undefined') if (typeof console != 'undefined') {
console.log(arguments); console.log(arguments);
if (typeof opera != 'undefined') return true;
}
if (typeof opera != 'undefined') {
opera.postError(arguments); opera.postError(arguments);
return true;
}
alert(arguments);
} }
/** /**
@ -73,11 +78,12 @@ function getFData(format,data,meth) {
val=data[meth](ch[2]); val=data[meth](ch[2]);
} }
catch(e) { catch(e) {
LSdebug('getFData() : '+meth+'() -> rater');
return; return;
} }
if($type(ch[4])) { if($type(ch[4])&&ch[4]!="") {
if ($type(ch[6])) { if ($type(ch[6])&&ch[6]!="") {
var s=ch[4]; var s=ch[4];
var l=ch[6]; var l=ch[6];
} }