diff --git a/dist/components/gmaps.js b/dist/components/gmaps.js index 421d1ab..59a9335 100644 --- a/dist/components/gmaps.js +++ b/dist/components/gmaps.js @@ -39,7 +39,7 @@ var Gmaps = React.createClass({ script.setAttribute("src", src); document.head.appendChild(script); } else { - this.mapsCallback(); + setTimeout(this.mapsCallback); } }, diff --git a/package.json b/package.json index 25705f5..20b8938 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-gmaps", - "version": "0.1.9", + "version": "0.1.10", "description": "A Google Maps component for React.js", "main": "dist/index.js", "scripts": {