Javascript e vs. object? Chome Inspector -


i'm working on small project leaflet, , trying diagnose why using map.load event returning object [object object] has no method 'load' (although load event firing properly)

when inspect variable containing map object in chrome instead of saying

object {foo: bar}

it says

e {foo: bar}

what e represent? can provide pictures of chrome inspector output if help.

var map = l.map('map', {maxzoom: 16, minzoom: 4, zoomcontrol: false}) .setview([46.5675115, 17.468262], 6); map.load(mapinit());  function mapinit() {   console.log('ive loaded'); } 

load event, not method. need use on attach event listeners:

map.on('load', mapinit); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -