mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix leaked global variable.
This commit is contained in:
parent
ae9ff56260
commit
093227be7e
1 changed files with 2 additions and 2 deletions
|
@ -369,9 +369,9 @@ var Raster = Item.extend(/** @lends Raster# */{
|
|||
},
|
||||
|
||||
setSource: function(src) {
|
||||
image = new window.Image();
|
||||
var image = new window.Image(),
|
||||
crossOrigin = this._crossOrigin;
|
||||
image.src = paper.resolvePath(src);
|
||||
var crossOrigin = this._crossOrigin;
|
||||
if (crossOrigin)
|
||||
image.crossOrigin = crossOrigin;
|
||||
this.setImage(image);
|
||||
|
|
Loading…
Reference in a new issue