Fixes typos
This commit is contained in:
parent
447fefd31c
commit
32a16295c3
@ -461,7 +461,7 @@ export default class AutoAnimate {
|
|||||||
const textNodes = 'h1, h2, h3, h4, h5, h6, p, li';
|
const textNodes = 'h1, h2, h3, h4, h5, h6, p, li';
|
||||||
const mediaNodes = 'img, video, iframe';
|
const mediaNodes = 'img, video, iframe';
|
||||||
|
|
||||||
// Eplicit matches via data-id
|
// Explicit matches via data-id
|
||||||
this.findAutoAnimateMatches( pairs, fromSlide, toSlide, '[data-id]', node => {
|
this.findAutoAnimateMatches( pairs, fromSlide, toSlide, '[data-id]', node => {
|
||||||
return node.nodeName + ':::' + node.getAttribute( 'data-id' );
|
return node.nodeName + ':::' + node.getAttribute( 'data-id' );
|
||||||
} );
|
} );
|
||||||
@ -573,14 +573,14 @@ export default class AutoAnimate {
|
|||||||
|
|
||||||
// Retrieve the 'from' element
|
// Retrieve the 'from' element
|
||||||
if( fromMatches[key] ) {
|
if( fromMatches[key] ) {
|
||||||
const pimaryIndex = toMatches[key].length - 1;
|
const primaryIndex = toMatches[key].length - 1;
|
||||||
const secondaryIndex = fromMatches[key].length - 1;
|
const secondaryIndex = fromMatches[key].length - 1;
|
||||||
|
|
||||||
// If there are multiple identical from elements, retrieve
|
// If there are multiple identical from elements, retrieve
|
||||||
// the one at the same index as our to-element.
|
// the one at the same index as our to-element.
|
||||||
if( fromMatches[key][ pimaryIndex ] ) {
|
if( fromMatches[key][ primaryIndex ] ) {
|
||||||
fromElement = fromMatches[key][ pimaryIndex ];
|
fromElement = fromMatches[key][ primaryIndex ];
|
||||||
fromMatches[key][ pimaryIndex ] = null;
|
fromMatches[key][ primaryIndex ] = null;
|
||||||
}
|
}
|
||||||
// If there are no matching from-elements at the same index,
|
// If there are no matching from-elements at the same index,
|
||||||
// use the last one.
|
// use the last one.
|
||||||
@ -608,7 +608,7 @@ export default class AutoAnimate {
|
|||||||
* fading of unmatched elements is turned on, these elements
|
* fading of unmatched elements is turned on, these elements
|
||||||
* will fade when going between auto-animate slides.
|
* will fade when going between auto-animate slides.
|
||||||
*
|
*
|
||||||
* Note that parents of auto-animate targets are NOT considerd
|
* Note that parents of auto-animate targets are NOT considered
|
||||||
* unmatched since fading them would break the auto-animation.
|
* unmatched since fading them would break the auto-animation.
|
||||||
*
|
*
|
||||||
* @param {HTMLElement} rootElement
|
* @param {HTMLElement} rootElement
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Makes it possble to jump to a slide by entering its
|
* Makes it possible to jump to a slide by entering its
|
||||||
* slide number or id.
|
* slide number or id.
|
||||||
*/
|
*/
|
||||||
export default class JumpToSlide {
|
export default class JumpToSlide {
|
||||||
|
@ -139,7 +139,7 @@ export default class Location {
|
|||||||
let hash = this.getHash();
|
let hash = this.getHash();
|
||||||
|
|
||||||
// If we're configured to push to history OR the history
|
// If we're configured to push to history OR the history
|
||||||
// API is not avaialble.
|
// API is not available.
|
||||||
if( config.history ) {
|
if( config.history ) {
|
||||||
window.location.hash = hash;
|
window.location.hash = hash;
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ export default class Plugins {
|
|||||||
// Flags our current state (idle -> loading -> loaded)
|
// Flags our current state (idle -> loading -> loaded)
|
||||||
this.state = 'idle';
|
this.state = 'idle';
|
||||||
|
|
||||||
// An id:instance map of currently registed plugins
|
// An id:instance map of currently registered plugins
|
||||||
this.registeredPlugins = {};
|
this.registeredPlugins = {};
|
||||||
|
|
||||||
this.asyncDependencies = [];
|
this.asyncDependencies = [];
|
||||||
@ -171,7 +171,7 @@ export default class Plugins {
|
|||||||
/**
|
/**
|
||||||
* Registers a new plugin with this reveal.js instance.
|
* Registers a new plugin with this reveal.js instance.
|
||||||
*
|
*
|
||||||
* reveal.js waits for all regisered plugins to initialize
|
* reveal.js waits for all registered plugins to initialize
|
||||||
* before considering itself ready, as long as the plugin
|
* before considering itself ready, as long as the plugin
|
||||||
* is registered before calling `Reveal.initialize()`.
|
* is registered before calling `Reveal.initialize()`.
|
||||||
*/
|
*/
|
||||||
|
@ -1251,7 +1251,7 @@ export default function( revealElement, options ) {
|
|||||||
*/
|
*/
|
||||||
function slide( h, v, f, origin ) {
|
function slide( h, v, f, origin ) {
|
||||||
|
|
||||||
// Dispatch an event before hte slide
|
// Dispatch an event before the slide
|
||||||
const slidechange = dispatchEvent({
|
const slidechange = dispatchEvent({
|
||||||
type: 'beforeslidechange',
|
type: 'beforeslidechange',
|
||||||
data: {
|
data: {
|
||||||
@ -1852,7 +1852,7 @@ export default function( revealElement, options ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If includeFragments is set, a route will be considered
|
// If includeFragments is set, a route will be considered
|
||||||
// availalbe if either a slid OR fragment is available in
|
// available if either a slid OR fragment is available in
|
||||||
// the given direction
|
// the given direction
|
||||||
if( includeFragments === true ) {
|
if( includeFragments === true ) {
|
||||||
let fragmentRoutes = fragments.availableRoutes();
|
let fragmentRoutes = fragments.availableRoutes();
|
||||||
|
Loading…
Reference in New Issue
Block a user