ic3b3rg
ic3b3rg

Reputation: 14927

Inaccessible JavaScript object property

Strange problem.

I'm investigating an object in the console. One of the properties is not accessible through JavaScript, but it is accessible through the console.

Is it possible to access the property through JavaScript?

This is the output from console.log(marker,marker.ie,marker.map):

console.log(marker,marker.ie,marker.map)

Here's the marker.ie property opened up in the console:

marker.ie property opened up in console

Upvotes: 1

Views: 1246

Answers (1)

Halcyon
Halcyon

Reputation: 57709

It's possible that, at the time of the console.log that the value of marker.ie is undefined. It might be getting defined later, this explains why it will show if you print the whole of marker.

Maybe you should wait on some event to complete?

Upvotes: 3

Related Questions