[sushi/wip/cosimoc/no-clutter] text: don't hang on to the text loader
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/wip/cosimoc/no-clutter] text: don't hang on to the text loader
- Date: Sun, 9 Apr 2017 05:08:51 +0000 (UTC)
commit 722dcbfd02f5e5b308db43bc1b0d50dec0fe03d7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Apr 8 21:33:22 2017 -0700
text: don't hang on to the text loader
src/js/viewers/text.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/js/viewers/text.js b/src/js/viewers/text.js
index 1143c81..4a6aa29 100644
--- a/src/js/viewers/text.js
+++ b/src/js/viewers/text.js
@@ -47,10 +47,10 @@ const TextRenderer = new Lang.Class({
this._file = file;
this._callback = callback;
- this._textLoader = new Sushi.TextLoader();
- this._textLoader.connect('loaded',
- Lang.bind(this, this._onBufferLoaded));
- this._textLoader.uri = file.get_uri();
+ let textLoader = new Sushi.TextLoader();
+ textLoader.connect('loaded',
+ Lang.bind(this, this._onBufferLoaded));
+ textLoader.uri = file.get_uri();
this._geditScheme = 'tango';
let schemaName = 'org.gnome.gedit.preferences.editor';
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]