diff options
Diffstat (limited to 'src/elements/Image.js')
-rw-r--r-- | src/elements/Image.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/Image.js b/src/elements/Image.js index 347269c..c51bc9a 100644 --- a/src/elements/Image.js +++ b/src/elements/Image.js @@ -17,10 +17,10 @@ export default class Image extends Shape { load (url, callback) { if (!url) return this - var img = new globals.window.Image() + const img = new globals.window.Image() on(img, 'load', function (e) { - var p = this.parent(Pattern) + const p = this.parent(Pattern) // ensure image size if (this.width() === 0 && this.height() === 0) { |