changeset 2820:058f270e6d4d

Last Commit
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Fri, 05 May 2017 09:35:06 +0100
parents 98610ac90893
children a39750ca3954 394b5e20d78f c3e444d743f1 6fe4ab566afa
files interfaces/ape.js
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/interfaces/ape.js	Fri May 05 09:31:06 2017 +0100
+++ b/interfaces/ape.js	Fri May 05 09:35:06 2017 +0100
@@ -655,7 +655,9 @@
         var obj = [];
         $(this.trackSliderObjects).each(function (i, trackObj) {
             var node = storage.document.createElement('value');
-            node.setAttribute("interface-name", trackObj.getAttribute("interface-name"));
+            if (trackObj.getAttribute("interface-name") !== "null") {
+                node.setAttribute("interface-name", trackObj.getAttribute("interface-name"));
+            }
             node.textContent = convSliderPosToRate(trackObj);
             obj.push(node);
         });