fixed cross origin image draw, so that canvas.toDataURL can work

This commit is contained in:
Connor Turland 2014-11-10 11:06:57 -05:00
parent 4adf0081b8
commit 218716dee3

View file

@ -82,6 +82,7 @@ Metamaps.Backbone.init = function () {
self.Metacode = Backbone.Model.extend({
initialize: function () {
var image = new Image();
image.setAttribute('crossOrigin', 'anonymous');
image.src = this.get('icon');
this.set('image',image);
},