i am working with javascript and using IE 11
I have this function "retornoZoomProduto" that sets a variable with data from the database called RETORNO wich is a global variable;
currently, i need to acess this object in a different function like this: "RETORNO.raw;"
this works fine in google chrome but won't work on IE 11
Here's an example so i can make myself clearer
var RETORNO;
function retornoZoomProduto(retorno){
console.log("retornando");
console.log(retorno); /*this works ok*/
RETORNO = retorno;
}
function showMercado(){
console.log(RETORNO)
/*this returns [object]{0: <Permission Denied>} */
}
https://jsfiddle.net/dpLeueky/1/
Why does this happen ? and only in IE 11 ?