use config
This commit is contained in:
parent
5fba807843
commit
60d70f483c
|
@ -160,7 +160,7 @@ var Reveal = (function(){
|
|||
document.addEventListener( 'touchend', onDocumentTouchEnd, false );
|
||||
window.addEventListener( 'hashchange', onWindowHashChange, false );
|
||||
|
||||
if (dom.controls) {
|
||||
if (config.controls && dom.controls) {
|
||||
dom.controlsLeft.addEventListener( 'click', preventAndForward( navigateLeft ), false );
|
||||
dom.controlsRight.addEventListener( 'click', preventAndForward( navigateRight ), false );
|
||||
dom.controlsUp.addEventListener( 'click', preventAndForward( navigateUp ), false );
|
||||
|
@ -175,7 +175,7 @@ var Reveal = (function(){
|
|||
document.removeEventListener( 'touchend', onDocumentTouchEnd, false );
|
||||
window.removeEventListener( 'hashchange', onWindowHashChange, false );
|
||||
|
||||
if (dom.controls) {
|
||||
if (config.controls && dom.controls) {
|
||||
dom.controlsLeft.removeEventListener( 'click', preventAndForward( navigateLeft ), false );
|
||||
dom.controlsRight.removeEventListener( 'click', preventAndForward( navigateRight ), false );
|
||||
dom.controlsUp.removeEventListener( 'click', preventAndForward( navigateUp ), false );
|
||||
|
@ -699,7 +699,7 @@ var Reveal = (function(){
|
|||
* Updates the state and link pointers of the controls.
|
||||
*/
|
||||
function updateControls() {
|
||||
if (!dom.controls) return;
|
||||
if (!config.controls || !dom.controls) return;
|
||||
|
||||
var routes = availableRoutes();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user