You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2016/09/04 14:27:11 UTC

[4/9] incubator-ponymail git commit: a few equality check changes

a few equality check changes


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/cab21194
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/cab21194
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/cab21194

Branch: refs/heads/coffee-and-cake
Commit: cab21194f37f984a8650004220da552551b57edf
Parents: e076354
Author: Daniel Gruno <hu...@apache.org>
Authored: Sun Sep 4 09:42:03 2016 +0200
Committer: Daniel Gruno <hu...@apache.org>
Committed: Sun Sep 4 09:42:03 2016 +0200

----------------------------------------------------------------------
 site/js/coffee/listview.coffee | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/cab21194/site/js/coffee/listview.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/listview.coffee b/site/js/coffee/listview.coffee
index e31e982..073c449 100644
--- a/site/js/coffee/listview.coffee
+++ b/site/js/coffee/listview.coffee
@@ -42,11 +42,11 @@ listView = (hash, reParse) ->
         
     ### Any new settings passed along? ###
     if isHash(hash)
-        if hash.month
+        if typeof hash.month != 'undefined'
             ponymail_month = hash.month
-        if hash.list
+        if typeof hash.list != 'undefined'
             ponymail_list = hash.list
-        if hash.query
+        if typeof hash.query != 'undefined'
             ponymail_query = hash.query
     
     ### First, check that we have a list to view! ###
@@ -118,7 +118,7 @@ listView = (hash, reParse) ->
 renderListView = (json, state) ->
     
     ### If this is a cache check callback, and nothing has changed, use the old JSON ###
-    if state and state.href and typeof json.changed != undefined and json.changed is false
+    if state and state.href and typeof json.changed != 'undefined' and json.changed is false
         json = ponymail_list_json[state.href]
         json.cached = true
     else if state and state.href