Skip to content

Commit 27ea3df

Browse files
committed
Some changes that shouldnt be here
1 parent 2c043a9 commit 27ea3df

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

plugins-client/ext.editors/editors.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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
},

plugins-client/ext.save/save.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)