Provide a description of the buggy behavior observed:
What steps will reproduce the problem?
call ImageLoader.loadImage(urls, callback)
Give a description of the behavior you expected to see.
callback.onImagesLoad(ImageHandle[] imageHandles)
imageHandles should contain array of handles in the same order as given by
urls argument.
Problem: all the handles contain information about image given by urls[0].
The version of Speed Tracer (check the chrome://extensions url)
SVN trunk (r48)
Problem in class com.google.gwt.graphics.client.ImageLoader:
51 public static void loadImages(String[] urls, CallBack cb) {
52 ImageLoader il = new ImageLoader();
53 for (int i = 0;i < urls.length;i++) {
54 il.addHandle(il.loadImage(urls[0]));
55 }
56 il.finalize(cb);
57 ImageLoader.imageLoaders.add(il);
58 }
Fix:
54 il.addHandle(il.loadImage(urls[i]));
Patch is attached to fix the issue.
Original issue reported on code.google.com by igor.mih...@gmail.com on 11 Jan 2010 at 10:24
Original issue reported on code.google.com by
igor.mih...@gmail.com
on 11 Jan 2010 at 10:24Attachments: