diff options
author | danielmitd | 2012-06-10 11:53:44 +0200 |
---|---|---|
committer | danielmitd | 2012-06-10 11:53:44 +0200 |
commit | 9de23f022c512a0be4edc593c14ffb22e5b0ebb2 (patch) | |
tree | 696648b5d5795a6f194a71aad527a39b01271aa1 /js | |
parent | 60d70f483c833c3611dc6e8daa96466a3bd16373 (diff) |
adapt coding style
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/reveal.js b/js/reveal.js index 50b8640..694d136 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -88,7 +88,7 @@ var Reveal = (function(){ dom.progress = document.querySelector( '.reveal .progress' ); dom.progressbar = document.querySelector( '.reveal .progress span' ); - if (config.controls) { + if ( config.controls ) { dom.controls = document.querySelector( '.reveal .controls' ); dom.controlsLeft = document.querySelector( '.reveal .controls .left' ); dom.controlsRight = document.querySelector( '.reveal .controls .right' ); @@ -160,7 +160,7 @@ var Reveal = (function(){ document.addEventListener( 'touchend', onDocumentTouchEnd, false ); window.addEventListener( 'hashchange', onWindowHashChange, false ); - if (config.controls && 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 (config.controls && 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,9 @@ var Reveal = (function(){ * Updates the state and link pointers of the controls. */ function updateControls() { - if (!config.controls || !dom.controls) return; + if ( !config.controls || !dom.controls ) { + return; + } var routes = availableRoutes(); |