[polari/wip/kunaljain/polari-search-merge-results] resultView: Don't init if already loaded
- From: Kunal Jain <kunaljain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/kunaljain/polari-search-merge-results] resultView: Don't init if already loaded
- Date: Tue, 16 Aug 2016 13:04:24 +0000 (UTC)
commit 6af81ac2a85f59d1ec83a22e0ce3f60eb683d99d
Author: Kunaal Jain <kunaalus gmail com>
Date: Tue Aug 16 18:34:05 2016 +0530
resultView: Don't init if already loaded
src/resultView.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/resultView.js b/src/resultView.js
index 68813e6..4631182 100644
--- a/src/resultView.js
+++ b/src/resultView.js
@@ -257,7 +257,7 @@ const ResultView = new Lang.Class({
}
}
this._rank = rank;
- this._rowactivated(uid, this._channelName, timestamp, rank);
+ if(!exists) this._rowactivated(uid, this._channelName, timestamp, rank);
},
_rowactivated: function(uid, channel, timestamp, rank) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]