Skip to content

Commit

Permalink
feat: add drawable crossOrigin support
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed May 10, 2017
1 parent 0de64e9 commit 8f1da6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/view/Drawable.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ var Drawable = Class.create(/** @lends Drawable.prototype */{
me.image = null;
//load image dynamically
var img = new Image();
if(properties.crossOrigin){
img.crossOrigin = properties.crossOrigin;
}
img.onload = function(){
img.onload = null;
me.init(img);
Expand Down

0 comments on commit 8f1da6b

Please sign in to comment.