changeset 2379:1e7d98ca83be

More minor fixes for #90. APE works for Edge
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Fri, 20 May 2016 10:33:41 +0100
parents 737e3f18e32b
children ae6a9d3426f8
files js/core.js js/specification.js
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/js/core.js	Fri May 20 10:15:07 2016 +0100
+++ b/js/core.js	Fri May 20 10:33:41 2016 +0100
@@ -679,7 +679,7 @@
 	this.postNode = function() {
 		// This will take the node from the popupOptions and display it
 		var node = this.popupOptions[this.currentIndex];
-		this.popupResponse.innerHTML = null;
+		this.popupResponse.innerHTML = "";
 		this.popupTitle.textContent = node.specification.statement;
 		if (node.specification.type == 'question') {
 			var textArea = document.createElement('textarea');
--- a/js/specification.js	Fri May 20 10:15:07 2016 +0100
+++ b/js/specification.js	Fri May 20 10:33:41 2016 +0100
@@ -248,9 +248,8 @@
 						this.type = 'statement';
 					} else {
 						this.options = [];
-						for (var i in children)
+						for (var i=0; i<children.length; i++)
 						{
-							if (isNaN(Number(i))==true){break;}
 							this.options.push({
 								name: children[i].getAttribute('name'),
 								text: children[i].textContent