Cannot read property ‘push’ of undefined
-
Hi, when I use Mappress, this script is added to page:
mapp.data.push( {"alignment":"default","center":null,"editable":null,"filter":null,"height":"350","hideEmpty":null, ... and so on } ); if (typeof mapp.load != 'undefined') { mapp.load(); };
but I’ve got error Cannot read property ‘push’ of undefined, that is because I’ve different object mapp:
mapp {Map: ƒ, Directions: ƒ, geocoders: {…}, Icons: {…}, InfoBox: ƒ, …} Directions: ƒ (t,i) Icons: {get: ƒ, getUrl: ƒ} InfoBox: ƒ (t,i) Map: ƒ (n,t) Places: ƒ (t,i) Poi: ƒ (t) event: {addListener: ƒ, addListenerOnce: ƒ, clearInstanceListeners: ƒ, clearListeners: ƒ, trigger: ƒ} geocoders: {Algolia: ƒ, Google: ƒ} lib: {ajax: ƒ, alert: ƒ, jqVersionCheck: ƒ, log: ƒ, scrollTo: ƒ, …} load: ƒ () widgets: {Grid: ƒ, Popup: ƒ} __proto__: Object
I dont’have property data, how I can fix this?
Best regards, Mateusz
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Cannot read property ‘push’ of undefined’ is closed to new replies.