changeset 2437:5bec79ce38ff

Analysis page: Remove redundant 'else' Previous commit broke this.
author Brecht De Man <b.deman@qmul.ac.uk>
date Thu, 02 Jun 2016 17:52:26 +0200
parents a78ebb1bdd8e
children 02df8de58e7b 701636813780
files js/specification.js
diffstat 1 files changed, 5 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/js/specification.js	Thu Jun 02 14:08:33 2016 +0100
+++ b/js/specification.js	Thu Jun 02 17:52:26 2016 +0200
@@ -121,17 +121,13 @@
             {
                 case 'pre':
                 case 'before':
-                    else {
-                        this.preTest = new this.surveyNode(this);
-                        this.preTest.decode(this,survey[i]);
-                    }
+	            this.preTest = new this.surveyNode(this);
+	            this.preTest.decode(this,survey[i]);
                     break;
                 case 'post':
                 case 'after':
-                    else {
-                        this.postTest = new this.surveyNode(this);
-                        this.postTest.decode(this,survey[i]);
-                    }
+                    this.postTest = new this.surveyNode(this);
+                    this.postTest.decode(this,survey[i]);
                     break;
             }
 		}
@@ -671,4 +667,4 @@
 			};
 		};
 	};
-}
\ No newline at end of file
+}