summaryrefslogtreecommitdiffstats
path: root/src/symbol.js
blob: e8907a3393bedb4cadaf5f1a37496d5c31a965cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SVG.Symbol = SVG.invent({
  // Initialize node
  create: 'symbol'

  // Inherit from
, inherit: SVG.Container

  // Add parent method
, construct: {
    // Create a new symbol
    symbol: function() {
      return this.defs().put(new SVG.Symbol)
    }
  }
  
})