Improved slider behaviour and fixed prefix handling
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index 1ead697..61e783b 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -123,7 +123,7 @@
};
var result = document.getElementById('resultinfo');
- var resultButton;
+ var resultButton = null;
if (result != null) {
resultButton = result.appendChild(document.createElement('div'));
resultButton.classList.add('result', 'button');
@@ -248,11 +248,12 @@
};
// Initialize queries for document
- if (obj.tutorial)
+ if (obj.tutorial) {
obj.tutorial.initQueries(document);
- // Initialize documentation links
- obj.tutorial.initDocLinks(document);
+ // Initialize documentation links
+ obj.tutorial.initDocLinks(document);
+ };
/**