@gedit/resource
Advanced tools
Comparing version 0.1.61 to 0.1.62
@@ -107,3 +107,2 @@ "use strict"; | ||
this.resource = options.resource; | ||
this.toDispose.push(this.resource); | ||
this.toDispose.push(this.toDisposeOnAutoSave); | ||
@@ -114,2 +113,5 @@ this.toDispose.push(this.onDirtyChangedEmitter); | ||
this.toDispose.push(this.onErrorEmitter); | ||
this.toDispose.push(utils_1.Disposable.create(function () { | ||
_this.resource.dispose(); | ||
})); | ||
this.toDispose.push(utils_1.Disposable.create(function () { return _this.cancelSave(); })); | ||
@@ -124,3 +126,2 @@ this.toDispose.push(utils_1.Disposable.create(function () { return _this.cancelSync(); })); | ||
this.resource.dispose(); // clear old resource | ||
this.toDispose.push(resource); | ||
this.resource = resource; | ||
@@ -127,0 +128,0 @@ this.options.resource = resource; |
{ | ||
"name": "@gedit/resource", | ||
"version": "0.1.61", | ||
"version": "0.1.62", | ||
"license": "MIT", | ||
@@ -31,3 +31,3 @@ "main": "lib/common/index", | ||
}, | ||
"gitHead": "9b41f77f8ae3b6aa3bf567402f699b5faaff532b" | ||
"gitHead": "162ca9c40f29b44973f3c3dc42e296fd9a4c0e58" | ||
} |
@@ -55,3 +55,2 @@ import { injectable, inject } from 'inversify'; | ||
this.resource = options.resource; | ||
this.toDispose.push(this.resource); | ||
this.toDispose.push(this.toDisposeOnAutoSave); | ||
@@ -62,2 +61,5 @@ this.toDispose.push(this.onDirtyChangedEmitter); | ||
this.toDispose.push(this.onErrorEmitter); | ||
this.toDispose.push(Disposable.create(() => { | ||
this.resource.dispose(); | ||
})); | ||
this.toDispose.push(Disposable.create(() => this.cancelSave())); | ||
@@ -72,3 +74,2 @@ this.toDispose.push(Disposable.create(() => this.cancelSync())); | ||
this.resource.dispose(); // clear old resource | ||
this.toDispose.push(resource); | ||
this.resource = resource; | ||
@@ -75,0 +76,0 @@ this.options.resource = resource; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
101141
1680