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

Fix missing var sb = this;
development
David Benson 2018-06-09 11:48:47 +01:00 committed by GitHub
commit aaf9662e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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