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

defining three.js with define() #8

Open
loldrup opened this issue Oct 22, 2012 · 3 comments
Open

defining three.js with define() #8

loldrup opened this issue Oct 22, 2012 · 3 comments

Comments

@loldrup
Copy link

loldrup commented Oct 22, 2012

Will you consider using define() when defining THREE as a module?

"A module is different from a traditional script file in that it defines a well-scoped object that avoids polluting the global namespace. It can explicitly list its dependencies and get a handle on those dependencies without needing to refer to global objects, but instead receive the dependencies as arguments to the function that defines the module. Modules in RequireJS are an extension of the Module Pattern, with the benefit of not needing globals to refer to other modules."
http://requirejs.org/docs/api.html#define

also see:
http://requirejs.org/docs/commonjs.html

@jeromeetienne
Copy link
Owner

what would that bring ?

you can already include three.js with require.js if you want

@loldrup
Copy link
Author

loldrup commented Oct 22, 2012

Awesomeness :)
Isn't that the modern/proper way to do it?
Den 22/10/2012 15.41 skrev "Jerome Etienne" [email protected]:

what would that bring ?

you can already include three.js with require.js if you want


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-9663910.

@jeromeetienne
Copy link
Owner

no, it is just one way. the one proposed by require.js

On Mon, Oct 22, 2012 at 4:01 PM, loldrup [email protected] wrote:

Awesomeness :)
Isn't that the modern/proper way to do it?
Den 22/10/2012 15.41 skrev "Jerome Etienne" [email protected]:

what would that bring ?

you can already include three.js with require.js if you want


Reply to this email directly or view it on GitHub<
https://github.com/jeromeetienne/threejsboilerplate/issues/8#issuecomment-9663910>.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-9664588.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants