I understand that productive JS code shouldn't be fragmented into several files (HTTP connections), but during development a well-arranged code will provide a better overview.
I am rather new to JavaScript development and just wondering how I could modularize my jQuery plugin code and maybe build one JS file from multiple sources later.
I am going to write a file viewer and there is a clear separation of concerns:
- load a file (AJAX)
- parse the file (it describes a mathematical graph [
http://en.wikipedia.org/wiki/File:6n-graf.svg])
- interpret the content and draw it using another JS library
- react to mouse events (click, hover)
How do you organize your source code when developing a jQuery plugin?