diff options
Diffstat (limited to 'src/elements/Symbol.js')
-rw-r--r-- | src/elements/Symbol.js | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/elements/Symbol.js b/src/elements/Symbol.js index f44125c..577d1f1 100644 --- a/src/elements/Symbol.js +++ b/src/elements/Symbol.js @@ -3,18 +3,24 @@ import { registerMethods } from '../utils/methods.js' import Container from './Container.js' export default class Symbol extends Container { + // Initialize node - constructor (node) { - super(nodeOrNew('symbol', node), node) + constructor ( node ) { + + super( nodeOrNew( 'symbol', node ), node ) + } + } -registerMethods({ +registerMethods( { Container: { - symbol: wrapWithAttrCheck(function () { - return this.put(new Symbol()) - }) + symbol: wrapWithAttrCheck( function () { + + return this.put( new Symbol() ) + + } ) } -}) +} ) -register(Symbol) +register( Symbol ) |