[sushi/wip/cosimoc/no-clutter: 56/67] 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: 56/67] text: don't hang on to the text loader
- Date: Mon, 30 Apr 2018 15:18:21 +0000 (UTC)
commit 0f5529738d6fc02bec947d4d6e27ce94e35a2218
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]