File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
packages/blockly-extension/src Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import { IJupyterWidgetRegistry } from '@jupyter-widgets/base';
1818
1919import {
2020 WidgetRenderer ,
21- registerWidgetManager ,
21+ registerWidgetManager
2222} from '@jupyter-widgets/jupyterlab-manager' ;
2323
2424import { BlocklyEditorFactory } from 'jupyterlab-blockly' ;
@@ -243,17 +243,17 @@ const plugin: JupyterFrontEndPlugin<IBlocklyRegistry> = {
243243 }
244244
245245 if ( widgetRegistry ) {
246- tracker . forEach ( ( panel ) => {
246+ tracker . forEach ( panel => {
247247 registerWidgetManager (
248- ( panel . context as any ) ,
248+ panel . context as any ,
249249 panel . content . rendermime ,
250250 widgetRenderers ( [ panel . content . cell ] )
251251 ) ;
252252 } ) ;
253-
253+
254254 tracker . widgetAdded . connect ( ( sender , panel ) => {
255255 registerWidgetManager (
256- ( panel . context as any ) ,
256+ panel . context as any ,
257257 panel . content . rendermime ,
258258 widgetRenderers ( [ panel . content . cell ] )
259259 ) ;
@@ -264,9 +264,7 @@ const plugin: JupyterFrontEndPlugin<IBlocklyRegistry> = {
264264 }
265265} ;
266266
267- function * widgetRenderers (
268- cells : CodeCell [ ]
269- ) : IterableIterator < WidgetRenderer > {
267+ function * widgetRenderers ( cells : CodeCell [ ] ) : IterableIterator < WidgetRenderer > {
270268 for ( const w of cells ) {
271269 if ( w instanceof WidgetRenderer ) {
272270 yield w ;
You can’t perform that action at this time.
0 commit comments