asciidisco/grunt-imagine — pull request #14 by dominicbarnes (2012-10-15 15:17:11+00:00)
Title: Fix for Sprite Generation

Howdy, I found a bug (#5) in the sprites task. The last file in the list generated by `src` was always being left out. And in the case where only 1 image exists in a sprite, nothing happens at all.

I opted to use [async.js](https://github.com/caolan/async/) to help control the async flow of reading the files into memory. It shortens the code, makes it more readable, and less prone to "off-by-one" errors such as this one.