An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
The code which executes the callback just checks for presence of thisObj.callback. If that exists on window, then it will be called.
We should only use that is the thisObj is an instance of our Base class:
Should be
doCallback = () => {
detacher();
if (!thisObj.isDestroyed) {
if (thisObj.$meta?.class.isBase) { // <-- The fix. If it is an instance of our Base class
thisObj.callback(handler, thisObj, callbackArgs);
}
else {
handler.apply(thisObj, callbackArgs);
}
}
},
Forum post
The code which executes the callback just checks for presence of
thisObj.callback
. If that exists onwindow
, then it will be called.We should only use that is the
thisObj
is an instance of ourBase
class:Should be