From: Guillaume Turri Date: Sun, 11 Aug 2013 14:25:43 +0000 (+0200) Subject: Use more explicit name X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e18ffa8779a0161f067a171b230a06b8952758db;p=reveal.js.git Use more explicit name --- 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', ''); + dom.progress = createSingletonNode(dom.wrapper, 'div', 'progress', ''); dom.progressbar = dom.progress.querySelector('span'); // Arrow controls - initializeNode(dom.wrapper, 'aside', 'controls', + createSingletonNode(dom.wrapper, 'aside', 'controls', '' + '' + '' + ''); // 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);