tmpvar/jsdom — pull request #341 by cjroebuck (2011-10-17 20:16:02+00:00)
Title: Should totalDocs be the total no. of scripts + src passed into jsdom.env?

Currently this causes jsdom.env to call the done() callback after each src is done loading, so in the e.g. below the done function would get called back 3 times:

jsdom.env
html: markup
src: [src1, src2, src3]
done: (err, window) ->
console.log 'done loading'