80 |
sub init_event ($$;$$) { |
sub init_event ($$;$$) { |
81 |
my $self = $_[0]; |
my $self = $_[0]; |
82 |
unless ($self->{manakai_dispatched}) { |
unless ($self->{manakai_dispatched}) { |
83 |
|
delete $self->{namespace_uri}; |
84 |
$self->{type} = ''.$_[1]; |
$self->{type} = ''.$_[1]; |
85 |
$self->{bubbles} = $_[2]; |
$self->{bubbles} = $_[2]; |
86 |
$self->{cancelable} = $_[3]; |
$self->{cancelable} = $_[3]; |
90 |
sub init_event_ns ($$;$$) { |
sub init_event_ns ($$;$$) { |
91 |
my $self = $_[0]; |
my $self = $_[0]; |
92 |
unless ($self->{manakai_dispatched}) { |
unless ($self->{manakai_dispatched}) { |
93 |
if (not defined $_[1] or $_[1] eq '') { |
unless (not defined $_[1] or $_[1] eq '') { |
94 |
$self->{namespace_uri} = $_[1]; |
$self->{namespace_uri} = $_[1]; |
95 |
|
} else { |
96 |
|
delete $self->{namespace_uri}; |
97 |
} |
} |
98 |
$self->{type} = ''.$_[2]; |
$self->{type} = ''.$_[2]; |
99 |
$self->{bubbles} = $_[3]; |
$self->{bubbles} = $_[3]; |
128 |
sub init_custom_event_ns ($$$;$$$) { |
sub init_custom_event_ns ($$$;$$$) { |
129 |
my $self = $_[0]; |
my $self = $_[0]; |
130 |
unless ($self->{manakai_dispatched}) { |
unless ($self->{manakai_dispatched}) { |
131 |
if (not defined $_[1] or $_[1] eq '') { |
unless (not defined $_[1] or $_[1] eq '') { |
132 |
$self->{namespace_uri} = $_[1]; |
$self->{namespace_uri} = $_[1]; |
133 |
|
} else { |
134 |
|
delete $self->{namespace_uri}; |
135 |
} |
} |
136 |
$self->{type} = ''.$_[2]; |
$self->{type} = ''.$_[2]; |
137 |
$self->{bubbles} = $_[3]; |
$self->{bubbles} = $_[3]; |