diff options
author | Hakim El Hattab | 2013-12-02 23:23:51 +0100 |
---|---|---|
committer | Hakim El Hattab | 2013-12-02 23:23:51 +0100 |
commit | aef53061c535b7ae85742dc6a2818fd07ef41a58 (patch) | |
tree | 81df72a0984aeacc582270501c0807d7bd443bfe /js/reveal.js | |
parent | 4a5b5c7c1192cf1acb81320efbe288c1ada0561f (diff) |
code format tweaks
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/reveal.js b/js/reveal.js index 0ffd797..b6eb99e 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -642,13 +642,13 @@ var Reveal = (function(){ dom.wrapper.addEventListener( 'pointerdown', onPointerDown, false ); dom.wrapper.addEventListener( 'pointermove', onPointerMove, false ); dom.wrapper.addEventListener( 'pointerup', onPointerUp, false ); - } else if( window.navigator.msPointerEnabled ) { + } + else if( window.navigator.msPointerEnabled ) { // IE 10 uses prefixed version of pointer events dom.wrapper.addEventListener( 'MSPointerDown', onPointerDown, false ); dom.wrapper.addEventListener( 'MSPointerMove', onPointerMove, false ); dom.wrapper.addEventListener( 'MSPointerUp', onPointerUp, false ); } - } if( config.keyboard ) { @@ -710,7 +710,7 @@ var Reveal = (function(){ dom.wrapper.removeEventListener( 'MSPointerUp', onPointerUp, false ); } // IE11 - if( window.navigator.pointerEnabled ) { + else if( window.navigator.pointerEnabled ) { dom.wrapper.removeEventListener( 'pointerdown', onPointerDown, false ); dom.wrapper.removeEventListener( 'pointermove', onPointerMove, false ); dom.wrapper.removeEventListener( 'pointerup', onPointerUp, false ); @@ -2891,7 +2891,7 @@ var Reveal = (function(){ */ function onPointerDown( event ) { - if(( event.pointerType === event.MSPOINTER_TYPE_TOUCH ) || ( event.pointerType === "touch" )) { + if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" ) { event.touches = [{ clientX: event.clientX, clientY: event.clientY }]; onTouchStart( event ); } @@ -2903,7 +2903,7 @@ var Reveal = (function(){ */ function onPointerMove( event ) { - if(( event.pointerType === event.MSPOINTER_TYPE_TOUCH ) || ( event.pointerType === "touch" )) { + if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" ) { event.touches = [{ clientX: event.clientX, clientY: event.clientY }]; onTouchMove( event ); } @@ -2915,7 +2915,7 @@ var Reveal = (function(){ */ function onPointerUp( event ) { - if(( event.pointerType === event.MSPOINTER_TYPE_TOUCH ) || ( event.pointerType === "touch" )) { + if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" ) { event.touches = [{ clientX: event.clientX, clientY: event.clientY }]; onTouchEnd( event ); } |