summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2017-03-20 11:28:50 +0800
committerWu Cheng-Han2017-03-20 11:28:50 +0800
commitafc4f269bc622e3c5ffcc4ec098014e4104de90f (patch)
tree5886e3c5473f201825fb5ca48e63f387f39fd77e
parent19a64f6b06ef74f760b5b8799a21425130910044 (diff)
Update to make removeDOMEvents only process once in slide mode
Diffstat (limited to '')
-rw-r--r--public/js/slide.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/public/js/slide.js b/public/js/slide.js
index 8d4b7153..84e098c7 100644
--- a/public/js/slide.js
+++ b/public/js/slide.js
@@ -49,6 +49,7 @@ const deps = [{
const slides = window.RevealMarkdown.slidify(body, slideOptions)
$('.slides').html(slides)
window.RevealMarkdown.initialize()
+ removeDOMEvents($('.slides'))
$('.slides').show()
}
}, {
@@ -109,7 +110,6 @@ function renderSlide (event) {
if (window.location.search.match(/print-pdf/gi)) {
const slides = $('.slides')
let title = document.title
- removeDOMEvents(slides)
finishView(slides)
document.title = title
Reveal.layout()
@@ -117,7 +117,6 @@ function renderSlide (event) {
const markdown = $(event.currentSlide)
if (!markdown.attr('data-rendered')) {
let title = document.title
- removeDOMEvents(markdown)
finishView(markdown)
markdown.attr('data-rendered', 'true')
document.title = title