You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a cogent reason that parameter id is optional?
I would prefer, that it would be required.
If so, the implementation of define could be run free of file specific context and would be easy and resource load could be done with better performance.
If not, define have to get the default id from the requested script filename and so it needs for every loaded module a own context.
The text was updated successfully, but these errors were encountered:
Anonymous define calls are important to allow code to be moved around to different file names/directories and still work. There are no plans to force the id argument, as the anonymous modules have been very useful in practice.
Is there a cogent reason that parameter
id
is optional?I would prefer, that it would be required.
If so, the implementation of
define
could be run free of file specific context and would be easy and resource load could be done with better performance.If not,
define
have to get the defaultid
from the requested script filename and so it needs for every loaded module a own context.The text was updated successfully, but these errors were encountered: