#77 console issue fixed

master
Agriya Dev5 2021-02-24 13:35:50 +05:30
parent 82ed16c983
commit e9a4326c89
1 changed files with 2 additions and 1 deletions

View File

@ -887,6 +887,7 @@ class Editor extends EditorStartup {
*/ */
setupFlyouts (holders) { setupFlyouts (holders) {
const allHolders = {}; const allHolders = {};
const currentObj = this;
$.each(holders, function (holdSel, btnOpts) { $.each(holders, function (holdSel, btnOpts) {
if (!allHolders[holdSel]) { if (!allHolders[holdSel]) {
allHolders[holdSel] = []; allHolders[holdSel] = [];
@ -907,7 +908,7 @@ class Editor extends EditorStartup {
}); });
// Remember the function that goes with this ID // 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; } if (opts.isDefault) { def = i; }