Pass `Blob` to `View` (for `ImageView`)

This allows us to do JPEG auto-orientation based on EXIF metadata.
This commit is contained in:
Daniel Gasienica 2018-02-09 14:25:48 -05:00
parent e6a414f2b2
commit 1602d7f610
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@
if (!this.objectUrl) {
this.objectUrl = window.URL.createObjectURL(this.blob);
}
this.view = new View(this.objectUrl, this.model.contentType);
this.view = new View(this.objectUrl, this.model.contentType, this.blob);
this.view.$el.appendTo(this.$el);
this.listenTo(this.view, 'update', this.update);
this.view.render();