I am at the beginning of an attempt to create a JavaScript library for our RIA application at work. We currently have many JavaScript files with all the functions globally, and I would like to try to add some reasonable namespaces and context to our functions. Perhaps they fit into an object form.
I studied other open source libraries to help me figure out how best to build a library. I see many .js files with the following in one particular open source project.
eg.
Does this make any difference other than just a comment in the file? Is there a way to import other .js files into your main assembly using this annotation or an import statement like Java?
source share