Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add styleClass and onTap props to Marker #22

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
loading script fix
Yaniv authored and Yaniv committed Oct 26, 2017
commit b1ebdad8207bf1735ca5316103316e0a34cb7c3d
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cwt-map",
"version": "0.4.10",
"version": "0.4.11",
"description": "React.js HERE Maps component",
"main": "dist/main.js",
"scripts": {
3 changes: 2 additions & 1 deletion src/utils/cache.ts
Original file line number Diff line number Diff line change
@@ -120,7 +120,8 @@ export function onAllLoad(callback: AllCallback) {
* @param url {string} - The URL/location of the script to be retrieved.
*/
export function getScript(url: string, name: string): ScriptState {
if (!loadedScripts.has(name) && !document.querySelector(`script[src="${url}"]`)) {
//if (!loadedScripts.has(name) && !document.querySelector(`script[src="${url}"]`)) {
if (!loadedScripts.has(name)) {
const tag: HTMLScriptElement = document.createElement("script");

const promise = new Promise<ScriptState>((resolve, reject) => {