0

I am using a plugin to integrate leaflet into an AngularJS project. As I wanted to check if the API was the same as the standard leaflet, I logged into the Chrome console the leaflet object provided by dependency injection; several methods were missing.

Surprisingly enough, when I tried to call those methods on that object anyway, they did work.

How can this be ? What makes some properties visible or not in the console ?

Rayjax
  • 7,494
  • 11
  • 56
  • 82

1 Answers1

0

The answer was in the

__proto__

property of the object

I had checked .prototype but not this one

Rayjax
  • 7,494
  • 11
  • 56
  • 82