-
Notifications
You must be signed in to change notification settings - Fork 189
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
Remove global pollution of bonsai #202
Comments
Will this mean that we can't do things like this anymore:
and it would become
? |
exactly |
I would have a small tear in my eye because we'll loose some of the ease of use of the api but just the amount of times I hit confusion when building a small demo doing stuff like following should be reason enough to require lightweight namespaces :)
|
the above is a good example. in simple scripts one might oversee where things come from. |
currently bonsai's (worker and/or iframe) context is polluted with all bonsai classes, such as Shape, Movie, etc. imho this is a possible trap for users that start working in that context too. The first use case, we stumbled over, was plugins, that do also write into that namespace. If the use of that context grows, which would make sense, since workload is "threaded" this way, this will become a problem, jquery-plugins like :).
Here is a suggestion how to fix that:
alternatively it can be provided as a plugin, which should never be recommended, but would still exist, but never be part of "official" bonsai
The text was updated successfully, but these errors were encountered: