Skip to content

Commit

Permalink
Merge pull request #468 from mapbox/cors-sprite
Browse files Browse the repository at this point in the history
Add some cors action to sprite loading.
  • Loading branch information
yhahn committed Jun 18, 2014
2 parents 8533bc6 + 87637e7 commit 5ec81c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/style/imagesprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function ImageSprite(base) {

// Load Image
sprite.img = new Image();
sprite.img.crossOrigin = 'Anonymous';
sprite.img.onload = function() {
if (sprite.data) sprite.fire('loaded');
};
Expand Down

0 comments on commit 5ec81c1

Please sign in to comment.