changeset 2897:1ea3413a7930

Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool
author www-data <www-data@sucuk.dcs.qmul.ac.uk>
date Wed, 05 Jul 2017 16:21:01 +0100
parents 7c21a0db02e9 (current diff) 5d5542e01fe1 (diff)
children dbfe0bbde246
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/js/specification.js	Wed Jul 05 15:20:59 2017 +0100
+++ b/js/specification.js	Wed Jul 05 16:21:01 2017 +0100
@@ -188,7 +188,7 @@
         var attributes = schemaSetup.querySelectorAll('attribute');
         for (var i = 0; i < attributes.length; i++) {
             var name = attributes[i].getAttribute("name");
-            if (name === undefined) {
+            if (name === null) {
                 name = attributes[i].getAttribute("ref");
             }
             if (this[name] !== undefined || attributes[i].getAttribute("use") == "required") {