mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-14 16:35:07 +01:00
api methods for adding/removing all event listeners (#48)
This commit is contained in:
parent
6db42971ea
commit
eb0a8cfa95
2 changed files with 4 additions and 1 deletions
|
|
@ -908,6 +908,9 @@ var Reveal = (function(){
|
|||
navigateDown: navigateDown,
|
||||
toggleOverview: toggleOverview,
|
||||
|
||||
addEventListeners: addEventListeners,
|
||||
removeEventListeners: removeEventListeners,
|
||||
|
||||
// Forward event binding to the reveal DOM element
|
||||
addEventListener: function( type, listener, useCapture ) {
|
||||
( dom.wrapper || document.querySelector( '.reveal' ) ).addEventListener( type, listener, useCapture );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue