Skip to content
This repository was archived by the owner on Sep 24, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/css/strip.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Strip - An Unobtrusive Responsive Lightbox - v1.6.4
* (c) 2014-2016 Nick Stakenburg
* (c) 2014-2017 Nick Stakenburg
*
* http://www.stripjs.com
*
Expand Down
5 changes: 3 additions & 2 deletions dist/js/strip.pkgd.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Strip - An Unobtrusive Responsive Lightbox - v1.6.4
* (c) 2014-2016 Nick Stakenburg
* (c) 2014-2017 Nick Stakenburg
*
* http://www.stripjs.com
*
Expand Down Expand Up @@ -366,6 +366,7 @@ $.extend(ImageReady.prototype, {
load: function() {
this._loading = setTimeout($.proxy(function() {
var image = new Image();
image.crossOrigin = this.img.crossOrigin;
this._onloadImage = image;

image.onload = $.proxy(function() {
Expand Down Expand Up @@ -1180,7 +1181,7 @@ $.extend(Page.prototype, {

switch (this.view.type) {
case 'image':
this.container.append(this.content = $('<img>')
this.container.append(this.content = $('<img' + (this.view.options.crossOrigin ? ' crossorigin="anonymous"' : '') + '>')
.attr({ src: this.view.url })
);
break;
Expand Down
6 changes: 3 additions & 3 deletions dist/js/strip.pkgd.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/js/helpers/imageready.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ $.extend(ImageReady.prototype, {
load: function() {
this._loading = setTimeout($.proxy(function() {
var image = new Image();
image.crossOrigin = this.img.crossOrigin;
this._onloadImage = image;

image.onload = $.proxy(function() {
Expand Down
2 changes: 1 addition & 1 deletion src/js/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ $.extend(Page.prototype, {

switch (this.view.type) {
case 'image':
this.container.append(this.content = $('<img>')
this.container.append(this.content = $('<img' + (this.view.options.crossOrigin ? ' crossorigin="anonymous"' : '') + '>')
.attr({ src: this.view.url })
);
break;
Expand Down