diff --git a/javascript/examples/grapheditor/www/js/Sidebar.js b/javascript/examples/grapheditor/www/js/Sidebar.js index 0ecdb96a2..f60d5cd07 100644 --- a/javascript/examples/grapheditor/www/js/Sidebar.js +++ b/javascript/examples/grapheditor/www/js/Sidebar.js @@ -989,6 +989,9 @@ Sidebar.prototype.addBasicPalette = function(dir) */ Sidebar.prototype.addMiscPalette = function(expand) { + // Avoids having to bind all functions to "this" + var sb = this; + var lineTags = 'line lines connector connectors connection connections arrow arrows ' var fns = [