I have this code:
function a() {
if(prodotto.approvatoIngredienti==true) {
disegnaIconaIngredienti();
function disegnaIconaIngredienti() {
//
}
}
I defined a function inside another function. With chrome and ie I don't have problem, but firefox gives me this error:
--
[15:26:41.279] disegnaIconaIngredienti is not defined @ http://127.0.0.1:8080/Tesi/javascript/InserimentoProdotti.js:1718
Someone can explain me why?