From 22fd508fc09fdeeaa42ed8d59768f87aabca28c7 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Fri, 30 Dec 2016 19:45:44 -0500 Subject: [PATCH] another attempt to fix #214. A gui object outside of the GOP area will still send graphical updates to the GUI. This needs to be addressed on the C side, but for now this fix should work --- pd/nw/pdgui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index 4590cb477..ba44893ce 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -2296,7 +2296,9 @@ function gui_bng_button_color(cid, tag, color) { var button; if (patchwin[cid]) { button = get_item(cid, tag + "button"); - configure_item(button, { fill: color }); + if (button) { + configure_item(button, { fill: color }); + } } } -- GitLab