Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
eventQueue.forEach((workspaceAction)=> {
Blockly.Events.disable();
workspaceAction.event.run(workspaceAction.forward);
Blockly.Events.enable();
});
};
entry.events = entry.events.map((entry) => {
return Blockly.Events.fromJson(entry, Blockly.getMainWorkspace());
});
});
workspace.addChangeListener((event) => {
if (event instanceof Blockly.Events.Ui) {
return;
};
workspaceClient.activeChanges.push(event);
if (!Blockly.Events.getGroup()) {
workspaceClient.flushEvents();
};
});
entry.events = entry.events.map((event) => {
return Blockly.Events.fromJson(event, Blockly.getMainWorkspace());
});
});
beginWrite_() {
this.writeInProgress = true;
const entryId = this.workspaceId + ':' + this.counter;
this.counter += 1;
this.inProgress.push({
events: Blockly.Events.filter(this.notSent, true),
entryId: entryId
});
this.notSent = [];
};