CapMousse/include.js — pull request #4 by kevinmctigue (2012-03-04 20:37:24+00:00)
Title: Added nested dependencies

I added an optional argument that may be passed to each file's callback. This is useful if you have one script that depends on another, but want everything to finish at once (nested depndencies).

Here's an example I added to the docs:

```javascript
include([
'script.js',
['other/js/script4.js', function(fn){
//See, now we can handle dependencies
include('other/ js/script4sbestfriend', fn);
//Now, once script4 is loaded, script4's best friend, who depends on script4 can be loaded too
//...and once it's done loading, it will signal to its parent by running fn
}]
]);
```