Initially I wanted to reuse the approach from Paul Irish's gist (setting the image src to a data uri, then back again), but this was causing more side effects than I anticipated so I switched to a simpler .trigger('load'). If you'd rather have a cleaner list of commits to merge, I can redo the changes in another branch.
The biggest change to users of this plugin is that the event handler is called outside the bind call stack (using setTimeout). I've updated the test suite to reflect this.
Initially I wanted to reuse the approach from Paul Irish's gist (setting the image src to a data uri, then back again), but this was causing more side effects than I anticipated so I switched to a simpler .trigger('load'). If you'd rather have a cleaner list of commits to merge, I can redo the changes in another branch.
The biggest change to users of this plugin is that the event handler is called outside the bind call stack (using setTimeout). I've updated the test suite to reflect this.