summaryrefslogtreecommitdiffstats
path: root/src/elements/G.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/G.js')
-rw-r--r--src/elements/G.js22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/elements/G.js b/src/elements/G.js
index 6a93a3f..a72f1fb 100644
--- a/src/elements/G.js
+++ b/src/elements/G.js
@@ -3,18 +3,24 @@ import { registerMethods } from '../utils/methods.js'
import Container from './Container.js'
export default class G extends Container {
- constructor (node) {
- super(nodeOrNew('g', node), node)
+
+ constructor ( node ) {
+
+ super( nodeOrNew( 'g', node ), node )
+
}
+
}
-registerMethods({
+registerMethods( {
Element: {
// Create a group element
- group: wrapWithAttrCheck(function () {
- return this.put(new G())
- })
+ group: wrapWithAttrCheck( function () {
+
+ return this.put( new G() )
+
+ } )
}
-})
+} )
-register(G)
+register( G )