| 1 | package SVG::DOM2::Element::Definition; | ||
| 2 | |||
| 3 | use base "XML::DOM2::Element"; | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | |||
| 8 | sub new | ||
| 9 | { | ||
| 10 | my ($proto, $def, %args) = @_; | ||
| 11 | my $self = $proto->SUPER::new($def, %args); | ||
| 12 | $self->document->addDefinition($self); | ||
| 13 | return $self; | ||
| 14 | } | ||
| 15 | |||
| 16 | return 1; |