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 fdd3d83..347269c 100644 --- a/src/elements/Image.js +++ b/src/elements/Image.js @@ -9,8 +9,8 @@ import Shape from './Shape.js' import { globals } from '../utils/window.js' export default class Image extends Shape { - constructor (node) { - super(nodeOrNew('image', node), node) + constructor (node, attrs = node) { + super(nodeOrNew('image', node), attrs) } // (re)load image |