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,7 +83,7 @@ i3GEO.analise = { | ||
83 | } | 83 | } |
84 | catch(e){ | 84 | catch(e){ |
85 | i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()"); | 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 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizaLinhaDoTempo()") < 0) | 89 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizaLinhaDoTempo()") < 0) |
classesjs/classe_desenho.js
@@ -241,7 +241,7 @@ i3GEO.desenho = { | @@ -241,7 +241,7 @@ i3GEO.desenho = { | ||
241 | try | 241 | try |
242 | {i3GEO.desenho.richdraw.renderer.resize(objeto,0,0,objposicaocursor.imgx,objposicaocursor.imgy);} | 242 | {i3GEO.desenho.richdraw.renderer.resize(objeto,0,0,objposicaocursor.imgx,objposicaocursor.imgy);} |
243 | catch(erro){ | 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 | if(tipo==="insereCirculo"){ | 247 | if(tipo==="insereCirculo"){ |
@@ -255,7 +255,7 @@ i3GEO.desenho = { | @@ -255,7 +255,7 @@ i3GEO.desenho = { | ||
255 | i3GEO.desenho.richdraw.renderer.create('text', '', i3GEO.desenho.richdraw.textColor, i3GEO.desenho.richdraw.lineWidth, pontosdistobj.ximg[n-1],pontosdistobj.yimg[n-1],"","",texto); | 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 | catch(men){ | 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
@@ -200,7 +200,7 @@ i3GEO.eventos = { | @@ -200,7 +200,7 @@ i3GEO.eventos = { | ||
200 | } | 200 | } |
201 | } | 201 | } |
202 | }catch(e){ | 202 | }catch(e){ |
203 | - if(typeof(console) !== 'undefined'){console.error(e);} | 203 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.eventos.mouseParado"+e);} |
204 | } | 204 | } |
205 | }, | 205 | }, |
206 | /* | 206 | /* |
classesjs/classe_guias.js
@@ -402,7 +402,7 @@ i3GEO.guias = { | @@ -402,7 +402,7 @@ i3GEO.guias = { | ||
402 | } | 402 | } |
403 | } | 403 | } |
404 | catch(e){ | 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 | if(i3GEO.guias.TIPO !== "tablet"){ | 407 | if(i3GEO.guias.TIPO !== "tablet"){ |
408 | i3GEO.guias.mostra(i3GEO.guias.ATUAL); | 408 | i3GEO.guias.mostra(i3GEO.guias.ATUAL); |
classesjs/classe_i3geo.js
@@ -517,7 +517,7 @@ var i3GEO = { | @@ -517,7 +517,7 @@ var i3GEO = { | ||
517 | {corpoMapa.call();return;} | 517 | {corpoMapa.call();return;} |
518 | } | 518 | } |
519 | catch(e){ | 519 | catch(e){ |
520 | - if(typeof(console) !== 'undefined'){console.error(e);} | 520 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.atualiza "+e);} |
521 | } | 521 | } |
522 | erro = function(){ | 522 | erro = function(){ |
523 | var c = confirm("Ocorreu um erro, quer tentar novamente?"); | 523 | var c = confirm("Ocorreu um erro, quer tentar novamente?"); |
classesjs/classe_mapa.js
@@ -262,7 +262,7 @@ i3GEO.mapa = { | @@ -262,7 +262,7 @@ i3GEO.mapa = { | ||
262 | i3GEO.php.reiniciaMapa(i3GEO.atualiza); | 262 | i3GEO.php.reiniciaMapa(i3GEO.atualiza); |
263 | } | 263 | } |
264 | } | 264 | } |
265 | - if(typeof(console) !== 'undefined'){console.error(e);} | 265 | + if(typeof(console) !== 'undefined'){console.error("i3GEO.mapa.verifica "+e);} |
266 | } | 266 | } |
267 | }, | 267 | }, |
268 | /* | 268 | /* |
classesjs/classe_maparef.js
@@ -428,7 +428,7 @@ i3GEO.maparef = { | @@ -428,7 +428,7 @@ i3GEO.maparef = { | ||
428 | } | 428 | } |
429 | catch(e){ | 429 | catch(e){ |
430 | i3GEO.janela.fechaAguarde("i3GEO.atualiza"); | 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 | \ No newline at end of file | 435 | \ No newline at end of file |
classesjs/classe_selecao.js
@@ -38,7 +38,7 @@ i3GEO.selecao = { | @@ -38,7 +38,7 @@ i3GEO.selecao = { | ||
38 | i3GEO.desenho.richdraw.fecha(); | 38 | i3GEO.desenho.richdraw.fecha(); |
39 | } | 39 | } |
40 | catch(e){ | 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 | if($i("pontosins")){document.body.removeChild($i("pontosins"));} | 43 | if($i("pontosins")){document.body.removeChild($i("pontosins"));} |
44 | i3GEO.barraDeBotoes.ativaBotoes(); | 44 | i3GEO.barraDeBotoes.ativaBotoes(); |
@@ -104,7 +104,7 @@ i3GEO.selecao = { | @@ -104,7 +104,7 @@ i3GEO.selecao = { | ||
104 | */ | 104 | */ |
105 | criaBox: function(){ | 105 | criaBox: function(){ |
106 | try{i3GEO.desenho.richdraw.fecha();}catch(e){ | 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 | i3GEO.desenho.criaContainerRichdraw(); | 109 | i3GEO.desenho.criaContainerRichdraw(); |
110 | i3GEO.desenho.richdraw.lineColor = "red"; | 110 | i3GEO.desenho.richdraw.lineColor = "red"; |
classesjs/classe_tema.js
@@ -321,7 +321,7 @@ i3GEO.tema = { | @@ -321,7 +321,7 @@ i3GEO.tema = { | ||
321 | if(tipoOperacao === "abrejanela"){ | 321 | if(tipoOperacao === "abrejanela"){ |
322 | try{clearTimeout(mostralegendajanelaTimer);} | 322 | try{clearTimeout(mostralegendajanelaTimer);} |
323 | catch(e){ | 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 | if(!$i("janelaLegenda"+idtema)){ | 326 | if(!$i("janelaLegenda"+idtema)){ |
327 | var janela = i3GEO.janela.cria("250px","","","","",nome,"janelaLegenda"+idtema,false); | 327 | var janela = i3GEO.janela.cria("250px","","","","",nome,"janelaLegenda"+idtema,false); |