Use `blobUrl` for consistency

This commit is contained in:
Daniel Gasienica 2018-02-12 16:31:21 -05:00
parent 523a80eefe
commit e7da41591f
1 changed files with 2 additions and 6 deletions

View File

@ -18,7 +18,7 @@
var ImageView = Backbone.View.extend({
tagName: 'img',
initialize: function(blobUrl) {
this.source = blobUrl;
this.blobUrl = blobUrl;
},
events: {
'load': 'update',
@ -27,11 +27,7 @@
this.trigger('update');
},
render: function() {
if (this.source === null) {
return this;
}
this.$el.attr('src', this.source);
this.$el.attr('src', this.blobUrl);
return this;
}
});