Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
openedWidget = null;
commands = new CommandRegistry();
registry = new DocumentRegistry();
registry.addModelFactory(modelFactory);
registry.addWidgetFactory(widgetFactory);
manager = new DocumentManager({
registry,
manager: services,
opener: {
open: (widget: Widget) => {
openedWidget = widget;
}
}
});
model = new FileBrowserModel({ manager: services });
buttons = new FileButtons({ model, manager, commands });
});