diff options
author | Guillaume Turri <guillaume.turri@gmail.com> | 2013-08-11 16:25:43 +0200 |
---|---|---|
committer | Guillaume Turri <guillaume.turri@gmail.com> | 2013-08-11 16:25:43 +0200 |
commit | e18ffa8779a0161f067a171b230a06b8952758db (patch) | |
tree | fef2d6368f556695defa84f073cad0c421cecad5 /js/reveal.js | |
parent | 04b9e444d97b31c1c5b867c02fe58b59a80386f4 (diff) | |
download | fosdem-2018-presentation-e18ffa8779a0161f067a171b230a06b8952758db.tar fosdem-2018-presentation-e18ffa8779a0161f067a171b230a06b8952758db.tar.gz |
Use more explicit name
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/reveal.js b/js/reveal.js index 4666642..d5461e8 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -193,24 +193,24 @@ var Reveal = (function(){ dom.slides = document.querySelector( '.reveal .slides' ); // Background element - dom.background = initializeNode(dom.wrapper, 'div', 'backgrounds', null); + dom.background = createSingletonNode(dom.wrapper, 'div', 'backgrounds', null); // Progress bar - dom.progress = initializeNode(dom.wrapper, 'div', 'progress', '<span></span>'); + dom.progress = createSingletonNode(dom.wrapper, 'div', 'progress', '<span></span>'); dom.progressbar = dom.progress.querySelector('span'); // Arrow controls - initializeNode(dom.wrapper, 'aside', 'controls', + createSingletonNode(dom.wrapper, 'aside', 'controls', '<div class="navigate-left"></div>' + '<div class="navigate-right"></div>' + '<div class="navigate-up"></div>' + '<div class="navigate-down"></div>'); // State background element [DEPRECATED] - initializeNode(dom.wrapper, 'div', 'state-background', null); + createSingletonNode(dom.wrapper, 'div', 'state-background', null); // Overlay graphic which is displayed during the paused mode - initializeNode(dom.wrapper, 'div', 'pause-overlay', null); + createSingletonNode(dom.wrapper, 'div', 'pause-overlay', null); // Cache references to elements if ( config.controls ) { @@ -227,7 +227,7 @@ var Reveal = (function(){ } - function initializeNode(container, tagname, classname, innerHTML){ + function createSingletonNode(container, tagname, classname, innerHTML){ var node = container.querySelector('.' + classname); if( !node ){ node = buildNode(tagname, classname, innerHTML); |