diff options
author | Hakim El Hattab | 2014-05-04 09:32:10 +0200 |
---|---|---|
committer | Hakim El Hattab | 2014-05-04 09:32:10 +0200 |
commit | 5e85f02eb1596d0c5a71aa35430c0914e0b6d35a (patch) | |
tree | a0dd1526525145266483eebee05b287ad62041fc /js | |
parent | 4c5b15d0b92cae5828df5d39c5e5a51e68242752 (diff) |
ensure default can be prevented
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js index ad332a3..11d6cda 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3278,7 +3278,7 @@ // If the input resulted in a triggered action we should prevent // the browsers default behavior if( triggered ) { - event.preventDefault(); + event.preventDefault && event.preventDefault(); } // ESC or O key else if ( ( event.keyCode === 27 || event.keyCode === 79 ) && features.transforms3d ) { @@ -3289,7 +3289,7 @@ toggleOverview(); } - event.preventDefault(); + event.preventDefault && event.preventDefault(); } // If auto-sliding is enabled we need to cue up |