diff options
Diffstat (limited to 'src/elements/Symbol.js')
-rw-r--r-- | src/elements/Symbol.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/elements/Symbol.js b/src/elements/Symbol.js new file mode 100644 index 0000000..183f449 --- /dev/null +++ b/src/elements/Symbol.js @@ -0,0 +1,20 @@ +import { nodeOrNew, register } from '../utils/adopter.js' +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), Symbol) + } +} + +registerMethods({ + Container: { + symbol () { + return this.put(new Symbol()) + } + } +}) + +register(Symbol) |