changeset 3060:b17a3e5e469b

Fixes for repetition of function calls in APE
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 31 Oct 2017 15:41:04 +0000
parents 01ca365f350d
children 83097e588634
files interfaces/ape.js
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/interfaces/ape.js	Tue Oct 31 11:30:27 2017 +0000
+++ b/interfaces/ape.js	Tue Oct 31 15:41:04 2017 +0000
@@ -672,11 +672,11 @@
                     var node = a.addSlider(aoi);
                     node.setLabel(label);
                     aoi.addSlider(node);
-                    audioObject.bindInterface(aoi);
-                    if (commentBoxes) {
-                        interfaceContext.commentBoxes.createCommentBox(audioObject);
-                    }
                 });
+                audioObject.bindInterface(aoi);
+                if (commentBoxes) {
+                    interfaceContext.commentBoxes.createCommentBox(audioObject);
+                }
             }
         });
     }