lib/assets/javascripts/googleplus.photo.js.coffee in googleplus-reader-0.0.1 vs lib/assets/javascripts/googleplus.photo.js.coffee in googleplus-reader-0.0.2
- old
+ new
@@ -18,12 +18,13 @@
else
url = @attributes.url
element = $('<img/>')
- element.on 'load', ->
- element.off 'load'
- callback element if callback?
+ if callback?
+ element.on 'load', ->
+ element.off 'load'
+ callback element
element.attr src: url
element