fix mixed spaces & tabs, remove unused feature test, add missing ;
This commit is contained in:
parent
28567f32ac
commit
024105fbbc
16
js/reveal.js
16
js/reveal.js
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* reveal.js 2.0 r23
|
* reveal.js 2.0 r24
|
||||||
* http://lab.hakim.se/reveal-js
|
* http://lab.hakim.se/reveal-js
|
||||||
* MIT licensed
|
* MIT licensed
|
||||||
*
|
*
|
||||||
|
@ -7,11 +7,11 @@
|
||||||
*/
|
*/
|
||||||
var Reveal = (function(){
|
var Reveal = (function(){
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
var HORIZONTAL_SLIDES_SELECTOR = '.reveal .slides>section',
|
var HORIZONTAL_SLIDES_SELECTOR = '.reveal .slides>section',
|
||||||
VERTICAL_SLIDES_SELECTOR = '.reveal .slides>section.present>section',
|
VERTICAL_SLIDES_SELECTOR = '.reveal .slides>section.present>section',
|
||||||
|
|
||||||
IS_TOUCH_DEVICE = !!( 'ontouchstart' in window ),
|
|
||||||
|
|
||||||
// Configurations defaults, can be overridden at initialization time
|
// Configurations defaults, can be overridden at initialization time
|
||||||
config = {
|
config = {
|
||||||
// Display controls in the bottom right corner
|
// Display controls in the bottom right corner
|
||||||
|
@ -321,7 +321,7 @@ var Reveal = (function(){
|
||||||
return function( event ) {
|
return function( event ) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
delegate.call();
|
delegate.call();
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -519,7 +519,7 @@ var Reveal = (function(){
|
||||||
node.classList.add( 'roll' );
|
node.classList.add( 'roll' );
|
||||||
node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
|
node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -818,7 +818,7 @@ var Reveal = (function(){
|
||||||
// Remove the 'enabled' class from all directions
|
// Remove the 'enabled' class from all directions
|
||||||
[ dom.controlsLeft, dom.controlsRight, dom.controlsUp, dom.controlsDown ].forEach( function( node ) {
|
[ dom.controlsLeft, dom.controlsRight, dom.controlsUp, dom.controlsDown ].forEach( function( node ) {
|
||||||
node.classList.remove( 'enabled' );
|
node.classList.remove( 'enabled' );
|
||||||
} )
|
} );
|
||||||
|
|
||||||
if( routes.left ) dom.controlsLeft.classList.add( 'enabled' );
|
if( routes.left ) dom.controlsLeft.classList.add( 'enabled' );
|
||||||
if( routes.right ) dom.controlsRight.classList.add( 'enabled' );
|
if( routes.right ) dom.controlsRight.classList.add( 'enabled' );
|
||||||
|
@ -1111,12 +1111,12 @@ var Reveal = (function(){
|
||||||
|
|
||||||
// Returns the previous slide element, may be null
|
// Returns the previous slide element, may be null
|
||||||
getPreviousSlide: function() {
|
getPreviousSlide: function() {
|
||||||
return previousSlide
|
return previousSlide;
|
||||||
},
|
},
|
||||||
|
|
||||||
// Returns the current slide element
|
// Returns the current slide element
|
||||||
getCurrentSlide: function() {
|
getCurrentSlide: function() {
|
||||||
return currentSlide
|
return currentSlide;
|
||||||
},
|
},
|
||||||
|
|
||||||
// Helper method, retrieves query string as a key/value hash
|
// Helper method, retrieves query string as a key/value hash
|
||||||
|
|
128
js/reveal.min.js
vendored
128
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user