fix controller api methods

This commit is contained in:
Hakim El Hattab 2020-03-09 21:04:31 +01:00
parent cd78bbd48d
commit cce59072dc
2 changed files with 13 additions and 13 deletions

2
dist/reveal.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -4060,9 +4060,9 @@ export default function( revealElement, options ) {
navigateNext: navigateNext, navigateNext: navigateNext,
// Fragment methods // Fragment methods
navigateFragment: () => fragments.goto, navigateFragment: () => fragments.goto.bind( fragments ),
prevFragment: () => fragments.prev, prevFragment: () => fragments.prev.bind( fragments ),
nextFragment: () => fragments.next, nextFragment: () => fragments.next.bind( fragments ),
// Forces an update in slide layout // Forces an update in slide layout
layout, layout,
@ -4074,13 +4074,13 @@ export default function( revealElement, options ) {
availableRoutes, availableRoutes,
// Returns an object with the available fragments as booleans (prev/next) // Returns an object with the available fragments as booleans (prev/next)
availableFragments: () => fragments.availableRoutes(), availableFragments: fragments.availableRoutes.bind( fragments ),
// Toggles a help overlay with keyboard shortcuts // Toggles a help overlay with keyboard shortcuts
toggleHelp, toggleHelp,
// Toggles the overview mode on/off // Toggles the overview mode on/off
toggleOverview: () => overview.toggle, toggleOverview: overview.toggle.bind( overview ),
// Toggles the "black screen" mode on/off // Toggles the "black screen" mode on/off
togglePause, togglePause,
@ -4094,14 +4094,14 @@ export default function( revealElement, options ) {
isLastVerticalSlide, isLastVerticalSlide,
// State checks // State checks
isOverview: () => overview.isActive, isOverview: () => overview.isActive.bind( overview ),
isPaused, isPaused,
isAutoSliding, isAutoSliding,
isSpeakerNotes, isSpeakerNotes,
// Slide preloading // Slide preloading
loadSlide: () => slideContent.load, loadSlide: () => slideContent.load.bind( slideContent ),
unloadSlide: () => slideContent.unload, unloadSlide: () => slideContent.unload.bind( slideContent ),
// Adds or removes all internal event listeners (such as keyboard) // Adds or removes all internal event listeners (such as keyboard)
addEventListeners, addEventListeners,
@ -4168,12 +4168,12 @@ export default function( revealElement, options ) {
}, },
// API for registering and retrieving plugins // API for registering and retrieving plugins
registerPlugin: (...args) => plugins.registerPlugin( ...args ), registerPlugin: () => plugins.registerPlugin.bind( plugins ),
hasPlugin: (...args) => plugins.hasPlugin( ...args ), hasPlugin: () => plugins.hasPlugin.bind( plugins ),
getPlugin: (...args) => plugins.getPlugin( ...args ), getPlugin: () => plugins.getPlugin.bind( plugins ),
// Returns a hash with all registered plugins // Returns a hash with all registered plugins
getPlugins: () => plugins.getRegisteredPlugins(), getPlugins: () => plugins.getRegisteredPlugins.bind( plugins ),
getComputedSlideSize, getComputedSlideSize,