I am trying to see how many events I have from inside a plugin. Yet, the code errors out saying I am accessing a null.
However when I ran a console and examine $dataMap (via console.log(top)) it clearly shows that this object is not null.
Could anyone please let me know what I am doing wrong?
Thank you.
JavaScript:
console.log($dataMap.events.length)
However when I ran a console and examine $dataMap (via console.log(top)) it clearly shows that this object is not null.
Could anyone please let me know what I am doing wrong?
Thank you.