pixedelic / Camera

http://www.pixedelic.com/plugins/camera/
494 stars 309 forks source link

Fix race condition in which the image would load before the onload callb... #34

Open Shananra opened 10 years ago

Shananra commented 10 years ago

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.