aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Symbol.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/Symbol.js')
-rw-r--r--src/elements/Symbol.js22
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 )