Skip to content
Snippets Groups Projects
Commit 1989b667 authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed JS issue with diff image loading

parent 090f2344
No related branches found
No related tags found
1 merge request!463Fixed JS issue with diff image loading
Loading
Loading
@@ -119,8 +119,9 @@ class @ImageFile
 
requestImageInfo: (img, callback) ->
domImg = img.get(0)
if domImg.complete
callback.call(this, domImg.naturalWidth, domImg.naturalHeight)
else
img.on 'load', =>
if domImg
if domImg.complete
callback.call(this, domImg.naturalWidth, domImg.naturalHeight)
else
img.on 'load', =>
callback.call(this, domImg.naturalWidth, domImg.naturalHeight)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment