15 lines
223 B
JavaScript
15 lines
223 B
JavaScript
SVG.Symbol = SVG.invent({
|
|
// Initialize node
|
|
create: 'symbol'
|
|
|
|
// Inherit from
|
|
, inherit: SVG.Container
|
|
|
|
, construct: {
|
|
// create symbol
|
|
symbol: function() {
|
|
return this.put(new SVG.Symbol)
|
|
}
|
|
}
|
|
})
|