I have a site with multiple of my students projects embedded through the js-api.
We are calling ndbx.evalFunction on each of the projects to be able to scale the resulting shapes to the specifics of the site that they are embedded in. This causes a call to ndbx.lookupJSFunction which looks up the function in globalNamespace. The problem is that a project that loaded later has the same name and overrides the global namespace entry.
I have a site with multiple of my students projects embedded through the js-api.
We are calling
ndbx.evalFunction
on each of the projects to be able to scale the resulting shapes to the specifics of the site that they are embedded in. This causes a call tondbx.lookupJSFunction
which looks up the function inglobalNamespace
. The problem is that a project that loaded later has the same name and overrides the global namespace entry.