Skip to content

Uncaught ReferenceError: mod_port is not defined #31

@brummer10

Description

@brummer10

modgui.js:357:28

A trigger port throw this error when pressed in the mod-sdk, could be fixed by define mod_port in

this.setPortWidgetsValue = function (symbol, value, source, only_gui) {

diff --git a/html/js/modgui.js b/html/js/modgui.js
index 5fa88aa..eab7f0b 100644
--- a/html/js/modgui.js
+++ b/html/js/modgui.js
@@ -325,6 +325,7 @@ function GUI(effect, options) {
         var label, valueField, widget,
             port = self.controls[symbol]

+        var mod_port = source ? source.attr("mod-port") : (self.instance ? self.instance+'/'+symbol : symbol)
         port.value = value

         for (var i in port.widgets) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions