aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/reveal.js
diff options
context:
space:
mode:
authortkaczmarzyk2013-04-07 06:38:21 +0200
committertkaczmarzyk2013-04-07 06:38:21 +0200
commit225662116982f13eb4e91d2c3d94a133c6d1b4ea (patch)
tree53aa9dd353627e8c35399d6d7274c20a2abb53c5 /js/reveal.js
parent2f8aa51dc2ace00bdc72926df3b8313626c2e38f (diff)
returning index only when current fragment is defined
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 9b7b196..ac1b8b8 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2050,7 +2050,7 @@ var Reveal = (function(){
if( currentSlide ) {
var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' );
- if( visibleFragments ) {
+ if( visibleFragments.length ) {
return visibleFragments.length;
}
}