Image onLoad doesn't fire in production

63 views
Skip to first unread message

Rohan Chandiramani

unread,
Aug 20, 2011, 4:30:26 PM8/20/11
to google-we...@googlegroups.com
Greetings gentlemen,

So my app is working perfectly on development but not on production and i can't figure out why.

Here's a view class and it's supposed to load an image and then with that data draw it on a canvas, problem is on production my onLoad event isn't firing.

Here's the class(it's quite messy, sorry for that.)


Is there any reason why it's not loading on production?

The link i'm providing looks like this:


Any and all help is much appreciated!

Rohan

geert3

unread,
Aug 23, 2011, 2:55:36 PM8/23/11
to google-we...@googlegroups.com
Just an idea, could it be your prefetch is already finished by the time you are registering the onload handler?
So you would have missed the event. Try putting the addLoadHandler before the image.prefetch.
cheers
Geert
Reply all
Reply to author
Forward
0 new messages