Skip to content

Commit

Permalink
#77 console issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AgriyaDev5 committed Feb 24, 2021
1 parent 82ed16c commit e9a4326
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/editor/svgedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,7 @@ class Editor extends EditorStartup {
*/
setupFlyouts (holders) {
const allHolders = {};
const currentObj = this;
$.each(holders, function (holdSel, btnOpts) {
if (!allHolders[holdSel]) {
allHolders[holdSel] = [];
Expand All @@ -907,7 +908,7 @@ class Editor extends EditorStartup {
});

// Remember the function that goes with this ID
this.flyoutFuncs[opts.sel] = opts.fn;
currentObj.flyoutFuncs[opts.sel] = opts.fn;

if (opts.isDefault) { def = i; }

Expand Down

0 comments on commit e9a4326

Please sign in to comment.