[gnome-documents] manager: fix a silly typo
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] manager: fix a silly typo
- Date: Wed, 9 Nov 2011 17:03:50 +0000 (UTC)
commit ddb294fa1d6a3a99fe2857188000c014c576df00
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Nov 9 12:02:49 2011 -0500
manager: fix a silly typo
Code wants to check if the function has been defined on the object, not
check its return value.
src/manager.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/manager.js b/src/manager.js
index d8141a1..b2eba21 100644
--- a/src/manager.js
+++ b/src/manager.js
@@ -115,7 +115,7 @@ BaseManager.prototype = {
if (item.id == 'all')
retval = this._getAllFilter();
- else if (item && item.getFilter())
+ else if (item && item.getFilter)
retval = item.getFilter();
return retval;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]