diff --git a/cookie-server.js b/cookie-server.js index 75f3e21..7404378 100644 --- a/cookie-server.js +++ b/cookie-server.js @@ -30,7 +30,7 @@ CookieServer.receive = function (event) { if (event.source === window.parent) { if (msg.cmd === "set") { CookieServer.setCookie(msg.name, msg.value, msg.days); - } else if (msg.cmd = "get") { + } else if (msg.cmd === "get") { event.source.postMessage(CookieServer.getCookie(msg.name),"*"); } } diff --git a/cts-ui/playground/blogs/blog1/data.js b/cts-ui/playground/blogs/blog1/data.js index 20b81fe..943134f 100644 --- a/cts-ui/playground/blogs/blog1/data.js +++ b/cts-ui/playground/blogs/blog1/data.js @@ -25,7 +25,7 @@ "location": "New York", "categories": [{"title":"Category 1", "link":"#"}, {"title":"Category 2", "link":"#"}], "tags": [{"title":"Tag 1", "link":"#"}, {"title":"Tag 2", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"David Karger", "link":"#"}, "comment_count":3, "comments":[ @@ -38,7 +38,7 @@ "location": "New York", "categories": [{"title":"Category 1", "link":"#"}, {"title":"Category 2", "link":"#"}], "tags": [{"title":"Tag 1", "link":"#"}, {"title":"Tag 2", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"David Karger", "link":"#"}, "comment_count":3, "comments":[ @@ -51,14 +51,14 @@ "location": "New York", "categories": [{"title":"Category 1", "link":"#"}, {"title":"Category 2", "link":"#"}], "tags": [{"title":"Tag 1", "link":"#"}, {"title":"Tag 2", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"Firstname Lastname", "link":"#"}, "comment_count":3, "comments":[ {"body":"Comment Body 1", "author":"Comment Author", "link":"#", "Date":"Tuesday, 25 October 2011"}, {"body":"Comment Body 2", "author":"Comment Author", "link":"#", "Date":"Tuesday, 25 October 2011"}], "sticky": false, - "body":"A Bronx woman reportedly won the tri-state lottery last night, totaling sixy zillion dollars. The winning ticket was sold at a convenience store on 10th Ave, but the winner has not yet come forward to reveal themselves." + "body":"A Bronx woman reportedly won the tri-state lottery last night, totaling sixty zillion dollars. The winning ticket was sold at a convenience store on 10th Ave, but the winner has not yet come forward to reveal themselves." }] } } diff --git a/cts-ui/playground/blogs/blog3/data.js b/cts-ui/playground/blogs/blog3/data.js index 2d1f2fb..46feb0a 100644 --- a/cts-ui/playground/blogs/blog3/data.js +++ b/cts-ui/playground/blogs/blog3/data.js @@ -22,7 +22,7 @@ "location": "New York", "categories": [{"name":"Cats", "link":"#"}], "tags": [{"name":"Cute", "link":"#"}, {"name":"Lasers", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"George Washington", "link":"#"}, "comment_count":2, "comments":[ @@ -34,7 +34,7 @@ "location": "New York", "categories": [{"name":"Cats", "link":"#"}], "tags": [{"name":"Cats", "link":"#"}, {"name":"Lazy", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"Andrew Hamilton", "link":"#"}, "comment_count":0, "comments":[], @@ -44,7 +44,7 @@ "location": "New York", "categories": [{"name":"Cats", "link":"#"}], "tags": [{"name":"Cats", "link":"#"}, {"name":"Lazy", "link":"#"}], - "date":"Tuesay, 25 October 2011", + "date":"Tuesday, 25 October 2011", "author":{"name":"Paul Revere", "link":"#"}, "comment_count":0, "comments":[],