Closed ghost closed 13 years ago
I would move modernizr.js
to libs/modernizr.js
and requestAnimationFrame.js
to /canvas/libs/requestAnimationFrame.js
.
Both are likely to be used in several different projects, modernizr for all types of projects and the other one for several canvas projects (based on a quick look on it). Therefore moving them to 'global' namespace would reduce code duplication in the future.
I'm not actually sure how well that work work, as I believe each of these projects are intended to be checked-out individually, and if one (or more) of the dependencies aren't checked-out as well, then the entire demo will fail to run...
... unless there is some way to ensure the file is checked-out with the rest of the folder?
Could you elaborate on what you mean with "checked-out"?
When someone wants to download the source of a project, do they not preform a checkout?
Or am I just going insane?
You mean using git? They clone, fetch or pull the project. But AFAIK it's not possible to do so to a part of the source code (unless in several branches), only to all of it.
Indeed then, I am going insane, and my point is invalid. I'll change it sometime either today (if I end up not being busy), or tomorrow.
Edit: DAMN IT.
I added a directory for canvas-related projects, and I created a small canvas demo.