[gnome-shell] search: Match an empty array, not a null one
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] search: Match an empty array, not a null one
- Date: Tue, 30 Sep 2014 06:55:39 +0000 (UTC)
commit 2cefc8be2717da9d6a1dff408043052d8d2cf70b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Sep 30 00:19:55 2014 -0600
search: Match an empty array, not a null one
When the terms are missing, we pass an empty array, not a null one.
js/ui/search.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index ec00bae..709484d 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -492,7 +492,7 @@ const SearchResults = new Lang.Class({
this._cancellable.cancel();
this._cancellable.reset();
- if (!terms) {
+ if (terms.length == 0) {
this._clearSearchTimeout();
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]