aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGuillaume Turri <guillaume.turri@gmail.com>2013-08-11 16:30:08 +0200
committerGuillaume Turri <guillaume.turri@gmail.com>2013-08-11 16:30:08 +0200
commit644ae56f4f86d5c3247764f17de6541cb7eb168f (patch)
tree0cc7b3757a738238682663987996c7bf1ae480be /js
parente18ffa8779a0161f067a171b230a06b8952758db (diff)
downloadperl-software-in-gnu-guix-644ae56f4f86d5c3247764f17de6541cb7eb168f.tar
perl-software-in-gnu-guix-644ae56f4f86d5c3247764f17de6541cb7eb168f.tar.gz
inlined method used only once
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js15
1 files changed, 5 insertions, 10 deletions
diff --git a/js/reveal.js b/js/reveal.js
index d5461e8..5baacfb 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -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