summaryrefslogtreecommitdiffstats
path: root/src/G.js
blob: 2d60cfec24ac90c60b44dde83fc4d1b584b7d52e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Container from './Container.js'
import Parent from './Parent.js'

export default class G extends Container {
  constructor (node) {
    super(nodeorNew('group', node))
  }
}

addFactory(Parent, {
  // Create a group element
  group: function () {
    return this.put(new G())
  }
})