Web::DOM::CustomEvent
The DOM CustomEvent object
DESCRIPTION
The Web::DOM::CustomEvent class implements the DOM CustomEvent interface.
METHODS
In addition to the methods of the Web::DOM::Event class, following methods are available:
$value = $ev->detail-
Return the additional data specified for the event. [DOM]
In addition,
it also supports init_custom_event method. [DOM]
The new method of the Web::DOM::CustomEvent class accepts the detail name/value pair in its second arguments,
in addition to the name/value pairs for Web::DOM::Event objects in general.
use Web::DOM::CustomEvent;
$ev = new Web::DOM::CustomEvent 'myevent', {detail => 12, bubbles => 1};
Any value can be specified as the detail value, but please be aware not to create circular reference to the event object through the detail value.
SPECIFICATION
- DOM
-
DOM Living Standard
<http://dom.spec.whatwg.org/#interface-customevent>.
SEE ALSO
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2013 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.