diff options
Diffstat (limited to 'src/elements/Mask.js')
-rw-r--r-- | src/elements/Mask.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/Mask.js b/src/elements/Mask.js index 178dcb5..64caca5 100644 --- a/src/elements/Mask.js +++ b/src/elements/Mask.js @@ -5,8 +5,8 @@ import baseFind from '../modules/core/selector.js' export default class Mask extends Container { // Initialize node - constructor (node) { - super(nodeOrNew('mask', node), node) + constructor (node, attrs = node) { + super(nodeOrNew('mask', node), attrs) } // Unmask all masked elements and remove itself |