Reveal.add/remveEventListener -> Reveal.on/off
This commit is contained in:
parent
f24620018f
commit
855cc82d76
17 changed files with 113 additions and 91 deletions
|
@ -374,7 +374,7 @@
|
|||
Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
|
||||
</p>
|
||||
<pre><code class="javascript" data-trim contenteditable style="font-size: 18px;">
|
||||
Reveal.addEventListener( 'customevent', function() {
|
||||
Reveal.on( 'customevent', function() {
|
||||
console.log( '"customevent" has fired' );
|
||||
} );
|
||||
</code></pre>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue