inlined method used only once
authorGuillaume Turri <guillaume.turri@gmail.com>
Sun, 11 Aug 2013 14:30:08 +0000 (16:30 +0200)
committerGuillaume Turri <guillaume.turri@gmail.com>
Sun, 11 Aug 2013 14:30:08 +0000 (16:30 +0200)
js/reveal.js

index d5461e8d0e4f884395200da1fe97904d85f06474..5baacfb02503e1e55bc507121a0b64c5287cdd1b 100644 (file)
@@ -230,21 +230,16 @@ var Reveal = (function(){
        function createSingletonNode(container, tagname, classname, innerHTML){
                var node = container.querySelector('.' + classname);
                if( !node ){
-                       node = buildNode(tagname, classname, innerHTML);
+                       node = document.createElement(tagname);
+                       node.classList.add(classname);
+                       if(innerHTML !== null){
+                               node.innerHTML = innerHTML;
+                       }
                        container.appendChild(node);
                }
                return node;
        }
 
-       function buildNode(tagname, classname, innerHTML){
-               var node = document.createElement(tagname);
-               node.classList.add(classname);
-               if(innerHTML !== null){
-                       node.innerHTML = innerHTML;
-               }
-               return node;
-       }
-
        /**
         * Creates the slide background elements and appends them
         * to the background container. One element is created per