Skip to content

Commit

Permalink
Merge pull request #3356 from deining/fix/typos
Browse files Browse the repository at this point in the history
Fixes typos
  • Loading branch information
hakimel authored Jan 25, 2023
2 parents 447fefd + 32a1629 commit b1a9842
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions js/controllers/autoanimate.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ export default class AutoAnimate {
const textNodes = 'h1, h2, h3, h4, h5, h6, p, li';
const mediaNodes = 'img, video, iframe';

// Eplicit matches via data-id
// Explicit matches via data-id
this.findAutoAnimateMatches( pairs, fromSlide, toSlide, '[data-id]', node => {
return node.nodeName + ':::' + node.getAttribute( 'data-id' );
} );
Expand Down Expand Up @@ -573,14 +573,14 @@ export default class AutoAnimate {

// Retrieve the 'from' element
if( fromMatches[key] ) {
const pimaryIndex = toMatches[key].length - 1;
const primaryIndex = toMatches[key].length - 1;
const secondaryIndex = fromMatches[key].length - 1;

// If there are multiple identical from elements, retrieve
// the one at the same index as our to-element.
if( fromMatches[key][ pimaryIndex ] ) {
fromElement = fromMatches[key][ pimaryIndex ];
fromMatches[key][ pimaryIndex ] = null;
if( fromMatches[key][ primaryIndex ] ) {
fromElement = fromMatches[key][ primaryIndex ];
fromMatches[key][ primaryIndex ] = null;
}
// If there are no matching from-elements at the same index,
// use the last one.
Expand Down Expand Up @@ -608,7 +608,7 @@ export default class AutoAnimate {
* fading of unmatched elements is turned on, these elements
* 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.
*
* @param {HTMLElement} rootElement
Expand Down
2 changes: 1 addition & 1 deletion js/controllers/jumptoslide.js
Original file line number Diff line number Diff line change
@@ -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.
*/
export default class JumpToSlide {
Expand Down
2 changes: 1 addition & 1 deletion js/controllers/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default class Location {
let hash = this.getHash();

// If we're configured to push to history OR the history
// API is not avaialble.
// API is not available.
if( config.history ) {
window.location.hash = hash;
}
Expand Down
4 changes: 2 additions & 2 deletions js/controllers/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class Plugins {
// Flags our current state (idle -> loading -> loaded)
this.state = 'idle';

// An id:instance map of currently registed plugins
// An id:instance map of currently registered plugins
this.registeredPlugins = {};

this.asyncDependencies = [];
Expand Down Expand Up @@ -171,7 +171,7 @@ export default class Plugins {
/**
* 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
* is registered before calling `Reveal.initialize()`.
*/
Expand Down
4 changes: 2 additions & 2 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ export default function( revealElement, options ) {
*/
function slide( h, v, f, origin ) {

// Dispatch an event before hte slide
// Dispatch an event before the slide
const slidechange = dispatchEvent({
type: 'beforeslidechange',
data: {
Expand Down Expand Up @@ -1852,7 +1852,7 @@ export default function( revealElement, options ) {
}

// 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
if( includeFragments === true ) {
let fragmentRoutes = fragments.availableRoutes();
Expand Down

0 comments on commit b1a9842

Please sign in to comment.