confile / gwt-image-loader

Automatically exported from code.google.com/p/gwt-image-loader
0 stars 0 forks source link

Image preloader throws processing async thread queue exception #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Used the FitImage sample 
2. Retrieved and set URL in a asynch call
3. ImpagePreloader throws exception on line 92 call:
!ImageElement.is(event.getEventTarget()); 

What version of the product are you using? On what operating system?
1.1.1 on Linux (Ubuntu)

Please provide any additional information below.

The problem lies when determining if the event is a load or an error event.
String comparisons will not work on Linux.

Attached is a patch which works on Linux and Windows.

Original issue reported on code.google.com by drey....@gmail.com on 5 Dec 2009 at 3:02

GoogleCodeExporter commented 8 years ago
Additionally the getCurrentEventTarget() method must be used in order to get the
correct image element from the DOM

Original comment by drey....@gmail.com on 5 Dec 2009 at 9:57

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by philip.w...@gmail.com on 23 Jul 2010 at 4:51

GoogleCodeExporter commented 8 years ago

Original comment by philip.w...@gmail.com on 23 Jul 2010 at 5:14