File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,7 @@ module.exports = ext.register("ext/editors/editors", {
500500
501501 initEditorEvents : function ( page , model ) {
502502 model = model || page . $model ;
503- page . $at . addEventListener ( "afterchange" , this . $onAfterChange = function ( e ) {
503+ page . $at . addEventListener ( "afterchange" , function ( e ) {
504504 if ( e . action == "reset" ) {
505505 delete this . undo_ptr ;
506506 return ;
@@ -548,9 +548,6 @@ module.exports = ext.register("ext/editors/editors", {
548548 close : function ( page ) {
549549 var pages = tabEditors . getPages ( ) ;
550550 var isLast = ( pages [ pages . length - 1 ] == page ) ;
551-
552- page . $at . removeEventListener ( "afterchange" , this . $onAfterChange ) ;
553-
554551 tabEditors . remove ( page ) ;
555552 this . resizeTabs ( isLast ) ;
556553 } ,
Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ module.exports = ext.register("ext/save/save", {
420420 fileType : node . getAttribute ( "name" ) . split ( "." ) . pop ( ) . toLowerCase ( ) ,
421421 success : state != apf . SUCCESS ? "false" : "true"
422422 } ) ;
423- apf . xmldb . setAttribute ( node , "saving" , "0 ") ;
423+ apf . xmldb . removeAttribute ( node , "saving" ) ;
424424
425425 ide . dispatchEvent ( "fs.afterfilesave" , { path : path , success : state == apf . SUCCESS } ) ;
426426
You can’t perform that action at this time.
0 commit comments