Fix missing var sb = this;

Fix missing var sb = this; in Sidebar.prototype.addMiscPalette function in Sidebar.js
Bug screenshot: https://ibb.co/mUjetT
development
Chomtana 2018-06-09 11:55:10 +07:00 committed by GitHub
parent e7f3573c91
commit 39df977672
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 = [