pixedelic/Camera — pull request #34 by Shananra (2013-12-12 22:37:02+00:00)
Title: Fix race condition in which the image would load before the onload callb...

There was a race condition where the callback was set after the src was set on the image. When loading Camera from the localhost the image may sometimes load faster than the code can get to the callback. By moving the code down where the src is set this issue is fixed.