aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2018-10-04 13:26:16 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2018-10-04 13:26:22 +0200
commitd5cf3fa13c899014008314d41292880fa8b699bd (patch)
treeab48c34dadd6d9aebf8fddd473267c4a4b03890a /js
parent8582c9aac8888bc71d2658377778279a5d5f0c34 (diff)
downloadperl-software-in-gnu-guix-d5cf3fa13c899014008314d41292880fa8b699bd.tar
perl-software-in-gnu-guix-d5cf3fa13c899014008314d41292880fa8b699bd.tar.gz
formatting and tweaks for #2104
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 4946df5..ac3135d 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -4099,18 +4099,20 @@
}
/**
- * Returns an array of objects where each object represents the attributes on its respective slide.
+ * Returns an array of objects where each object represents the
+ * attributes on its respective slide.
*/
- function getSlidesMetaInfo() {
+ function getSlidesAttributes() {
- var slides = getSlides();
- return slides.map( function (slide) {
- var meta = {};
+ return getSlides().map( function( slide ) {
+
+ var attributes = {};
for( var i = 0; i < slide.attributes.length; i++ ) {
var attribute = slide.attributes[ i ];
- meta[ attribute.name ] = attribute.value;
+ attributes[ attribute.name ] = attribute.value;
}
- return meta;
+ return attributes;
+
} );
}
@@ -5473,7 +5475,7 @@
// Returns an Array of objects representing the attributes on
// the slides
- getSlidesMetaInfo: getSlidesMetaInfo,
+ getSlidesAttributes: getSlidesAttributes,
// Returns the total number of slides
getTotalSlides: getTotalSlides,