Browse Source

Merge pull request #205 from Chomtana/Chomtana-fix-sb-1

Fix missing var sb = this;
tags/v3.9.7
David Benson GitHub 1 year ago
parent
commit
aaf9662e9f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      javascript/examples/grapheditor/www/js/Sidebar.js

+ 3
- 0
javascript/examples/grapheditor/www/js/Sidebar.js View File

@@ -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 = [

Loading…
Cancel
Save