nodebox / live

Report issues with NodeBox Live
1 stars 0 forks source link

embedded projects with same project name collide #43

Open fjenett opened 4 years ago

fjenett commented 4 years ago

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.