diff --git a/js/reveal.js b/js/reveal.js
index b4cb17fb..f844456c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3791,7 +3791,7 @@
 	}
 
 	function preventSwipe(target) {
-		while( target && typeof target.hasAttribute == 'function' ) {
+		while( target && typeof target.hasAttribute === 'function' ) {
 			if(target.hasAttribute('prevent-swipe')) return true;
 			target = target.parentNode;
 		}