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 {
174
174
sender : YDrawIO ,
175
175
changes : IDrawIOChange
176
176
) : void => {
177
- console . debug ( " State changed:" ) ;
177
+ console . debug ( ' State changed:' ) ;
178
178
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 ) ;
181
181
if ( state . name === 'dirty' ) {
182
182
this . _stateChanged . emit ( {
183
183
name : 'dirty' ,
@@ -186,7 +186,6 @@ export class DrawIODocumentModel implements DocumentRegistry.IModel {
186
186
} ) ;
187
187
}
188
188
} ) ;
189
-
190
189
} else {
191
190
this . dirty = true ;
192
191
this . _sharedModelChanged . emit ( changes ) ;
@@ -370,7 +369,7 @@ export class YDrawIO extends YDocument<IDrawIOChange> {
370
369
* Handle a change to the _mxGraphModel.
371
370
*/
372
371
private _stateObserver = ( event : Y . YMapEvent < any > ) : void => {
373
- const stateChange = new Array ( ) ;
372
+ const stateChange = [ ] ;
374
373
375
374
if ( event . keysChanged . has ( 'dirty' ) ) {
376
375
const change = event . changes . keys . get ( 'dirty' ) ;
You can’t perform that action at this time.
0 commit comments