Skip to content

Commit

Permalink
dded an onerror handle in the image plugin - fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiano-belloni committed Feb 8, 2013
1 parent a552c1b commit 1a75d0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ define(function(){
onLoad(null); //avoid errors on the optimizer since it can't inline image files
}else{
img = new Image();
img.onerror = function (err) {
onLoad.error(err);
};
img.onerror = function (err) {
onLoad.error(err);
};
img.onload = function(evt){
onLoad(img);
try {
Expand Down

0 comments on commit 1a75d0e

Please sign in to comment.