File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,10 @@ export class DrawIODocumentModel implements DocumentRegistry.IModel {
174174 sender : YDrawIO ,
175175 changes : IDrawIOChange
176176 ) : void => {
177- console . debug ( " State changed:" ) ;
177+ console . debug ( ' State changed:' ) ;
178178 if ( changes . stateChange ) {
179- changes . stateChange . forEach ( state => {
180- console . debug ( " State changed:" , state ) ;
179+ changes . stateChange . forEach ( state => {
180+ console . debug ( ' State changed:' , state ) ;
181181 if ( state . name === 'dirty' ) {
182182 this . _stateChanged . emit ( {
183183 name : 'dirty' ,
@@ -186,7 +186,6 @@ export class DrawIODocumentModel implements DocumentRegistry.IModel {
186186 } ) ;
187187 }
188188 } ) ;
189-
190189 } else {
191190 this . dirty = true ;
192191 this . _sharedModelChanged . emit ( changes ) ;
@@ -370,7 +369,7 @@ export class YDrawIO extends YDocument<IDrawIOChange> {
370369 * Handle a change to the _mxGraphModel.
371370 */
372371 private _stateObserver = ( event : Y . YMapEvent < any > ) : void => {
373- const stateChange = new Array ( ) ;
372+ const stateChange = [ ] ;
374373
375374 if ( event . keysChanged . has ( 'dirty' ) ) {
376375 const change = event . changes . keys . get ( 'dirty' ) ;
You can’t perform that action at this time.
0 commit comments