changeset 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 22d1f6d9f0bf
children 5d5542e01fe1
files js/specification.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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") {