mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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) {
|
setSource: function(src) {
|
||||||
image = new window.Image();
|
var image = new window.Image(),
|
||||||
|
crossOrigin = this._crossOrigin;
|
||||||
image.src = paper.resolvePath(src);
|
image.src = paper.resolvePath(src);
|
||||||
var crossOrigin = this._crossOrigin;
|
|
||||||
if (crossOrigin)
|
if (crossOrigin)
|
||||||
image.crossOrigin = crossOrigin;
|
image.crossOrigin = crossOrigin;
|
||||||
this.setImage(image);
|
this.setImage(image);
|
||||||
|
|
Loading…
Reference in a new issue