diff js/specification.js @ 2895:2eec0c37b4cb

Minor error with test_create and global settings not being correctly handled.
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Wed, 05 Jul 2017 15:20:45 +0100
parents 0981212c091f
children cccb9c312b5d 664065577426
line wrap: on
line diff
--- a/js/specification.js	Wed Jul 05 12:08:52 2017 +0100
+++ b/js/specification.js	Wed Jul 05 15:20:45 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") {