Commit d66e80d5c5988d2116c92dc9642a259b7b32a877
1 parent
4ce239ea
Exists in
master
and in
7 other branches
Complementação das mensagens de erro no Firebug
Showing
9 changed files
with
11 additions
and
11 deletions
Show diff stats
classesjs/classe_analise.js
| ... | ... | @@ -83,7 +83,7 @@ i3GEO.analise = { |
| 83 | 83 | } |
| 84 | 84 | catch(e){ |
| 85 | 85 | i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()"); |
| 86 | - if(typeof(console) !== 'undefined'){console.error(e);} | |
| 86 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.analise.linhaDoTempo "+e);} | |
| 87 | 87 | } |
| 88 | 88 | }; |
| 89 | 89 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizaLinhaDoTempo()") < 0) | ... | ... |
classesjs/classe_desenho.js
| ... | ... | @@ -241,7 +241,7 @@ i3GEO.desenho = { |
| 241 | 241 | try |
| 242 | 242 | {i3GEO.desenho.richdraw.renderer.resize(objeto,0,0,objposicaocursor.imgx,objposicaocursor.imgy);} |
| 243 | 243 | catch(erro){ |
| 244 | - if(typeof(console) !== 'undefined'){console.error(erro);} | |
| 244 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.desenho "+erro);} | |
| 245 | 245 | } |
| 246 | 246 | } |
| 247 | 247 | if(tipo==="insereCirculo"){ |
| ... | ... | @@ -255,7 +255,7 @@ i3GEO.desenho = { |
| 255 | 255 | i3GEO.desenho.richdraw.renderer.create('text', '', i3GEO.desenho.richdraw.textColor, i3GEO.desenho.richdraw.lineWidth, pontosdistobj.ximg[n-1],pontosdistobj.yimg[n-1],"","",texto); |
| 256 | 256 | } |
| 257 | 257 | catch(men){ |
| 258 | - if(typeof(console) !== 'undefined'){console.error(men);} | |
| 258 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.desenho "+men);} | |
| 259 | 259 | } |
| 260 | 260 | } |
| 261 | 261 | } | ... | ... |
classesjs/classe_eventos.js
classesjs/classe_guias.js
| ... | ... | @@ -402,7 +402,7 @@ i3GEO.guias = { |
| 402 | 402 | } |
| 403 | 403 | } |
| 404 | 404 | catch(e){ |
| 405 | - if(typeof(console) !== 'undefined'){console.error(e);} | |
| 405 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.guias.cria "+e);} | |
| 406 | 406 | } |
| 407 | 407 | if(i3GEO.guias.TIPO !== "tablet"){ |
| 408 | 408 | i3GEO.guias.mostra(i3GEO.guias.ATUAL); | ... | ... |
classesjs/classe_i3geo.js
| ... | ... | @@ -517,7 +517,7 @@ var i3GEO = { |
| 517 | 517 | {corpoMapa.call();return;} |
| 518 | 518 | } |
| 519 | 519 | catch(e){ |
| 520 | - if(typeof(console) !== 'undefined'){console.error(e);} | |
| 520 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.atualiza "+e);} | |
| 521 | 521 | } |
| 522 | 522 | erro = function(){ |
| 523 | 523 | var c = confirm("Ocorreu um erro, quer tentar novamente?"); | ... | ... |
classesjs/classe_mapa.js
classesjs/classe_maparef.js
| ... | ... | @@ -428,7 +428,7 @@ i3GEO.maparef = { |
| 428 | 428 | } |
| 429 | 429 | catch(e){ |
| 430 | 430 | i3GEO.janela.fechaAguarde("i3GEO.atualiza"); |
| 431 | - if(typeof(console) !== 'undefined'){console.error(e);} | |
| 431 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.mapaRef.click "+e);} | |
| 432 | 432 | } |
| 433 | 433 | } |
| 434 | 434 | }; |
| 435 | 435 | \ No newline at end of file | ... | ... |
classesjs/classe_selecao.js
| ... | ... | @@ -38,7 +38,7 @@ i3GEO.selecao = { |
| 38 | 38 | i3GEO.desenho.richdraw.fecha(); |
| 39 | 39 | } |
| 40 | 40 | catch(e){ |
| 41 | - if(typeof(console) !== 'undefined'){console.error(e);} | |
| 41 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.selecao.janelaOpcoes "+e);} | |
| 42 | 42 | } |
| 43 | 43 | if($i("pontosins")){document.body.removeChild($i("pontosins"));} |
| 44 | 44 | i3GEO.barraDeBotoes.ativaBotoes(); |
| ... | ... | @@ -104,7 +104,7 @@ i3GEO.selecao = { |
| 104 | 104 | */ |
| 105 | 105 | criaBox: function(){ |
| 106 | 106 | try{i3GEO.desenho.richdraw.fecha();}catch(e){ |
| 107 | - if(typeof(console) !== 'undefined'){console.error(e);} | |
| 107 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.selecao.criaBox "+e);} | |
| 108 | 108 | } |
| 109 | 109 | i3GEO.desenho.criaContainerRichdraw(); |
| 110 | 110 | i3GEO.desenho.richdraw.lineColor = "red"; | ... | ... |
classesjs/classe_tema.js
| ... | ... | @@ -321,7 +321,7 @@ i3GEO.tema = { |
| 321 | 321 | if(tipoOperacao === "abrejanela"){ |
| 322 | 322 | try{clearTimeout(mostralegendajanelaTimer);} |
| 323 | 323 | catch(e){ |
| 324 | - if(typeof(console) !== 'undefined'){console.error(e);} | |
| 324 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.tema.mostralegendajanela "+e);} | |
| 325 | 325 | } |
| 326 | 326 | if(!$i("janelaLegenda"+idtema)){ |
| 327 | 327 | var janela = i3GEO.janela.cria("250px","","","","",nome,"janelaLegenda"+idtema,false); | ... | ... |