[gnome-maps] FavoritesPopover: Fix filter function
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] FavoritesPopover: Fix filter function
- Date: Mon, 24 Nov 2014 07:24:51 +0000 (UTC)
commit 600f51011c71b19af33f15947b8c015b489c4257
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Mon Nov 24 02:20:48 2014 -0500
FavoritesPopover: Fix filter function
src/favoritesPopover.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/favoritesPopover.js b/src/favoritesPopover.js
index fcd42c9..bbfd201 100644
--- a/src/favoritesPopover.js
+++ b/src/favoritesPopover.js
@@ -89,9 +89,10 @@ const FavoritesPopover = new Lang.Class({
this._list.set_filter_func((function(row) {
let text = this._entry.text.toLowerCase();
+ let title = row.title.toLowerCase();
let length = text.length;
- return (text === row.title.substring(0, text.length));
+ return (text === title.substring(0, text.length));
}).bind(this));
this._updateList();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]