<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -431,6 +431,6 @@ DETAIL:&amp;nbsp;&lt;A HREF=&quot;#field_detail&quot;&gt;FIELD&lt;/A&gt;&amp;nbsp;|&amp;nbsp;&lt;A HREF=&quot;#constructor
 &lt;FONT SIZE=&quot;-1&quot;&gt;
 
 &lt;/FONT&gt;
-&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; target=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:06:43 2009&lt;/div&gt;
+&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; target=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:47:42 2009&lt;/div&gt;
 &lt;/BODY&gt;
 &lt;/HTML&gt;</diff>
      <filename>api/Person.html</filename>
    </modified>
    <modified>
      <diff>@@ -449,6 +449,6 @@ DETAIL:&amp;nbsp;&lt;A HREF=&quot;#field_detail&quot;&gt;FIELD&lt;/A&gt;&amp;nbsp;|&amp;nbsp;&lt;A HREF=&quot;#constructor
 &lt;FONT SIZE=&quot;-1&quot;&gt;
 
 &lt;/FONT&gt;
-&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; target=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:06:43 2009&lt;/div&gt;
+&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; target=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:47:42 2009&lt;/div&gt;
 &lt;/BODY&gt;
 &lt;/HTML&gt;</diff>
      <filename>api/Server.html</filename>
    </modified>
    <modified>
      <diff>@@ -155,6 +155,6 @@ This help file applies to API documentation generated using the standard doclet.
 &lt;FONT SIZE=&quot;-1&quot;&gt;
 
 &lt;/FONT&gt;
-&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; target=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:06:43 2009&lt;/div&gt;
+&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; target=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:47:42 2009&lt;/div&gt;
 &lt;/BODY&gt;
 &lt;/HTML&gt;</diff>
      <filename>api/help-doc.html</filename>
    </modified>
    <modified>
      <diff>@@ -244,6 +244,6 @@ Constructor in  class &lt;A HREF=&quot;Server.html&quot;&gt;Server&lt;/A&gt;
 &lt;FONT SIZE=&quot;-1&quot;&gt;
 
 &lt;/FONT&gt;
-&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:06:43 2009&lt;/div&gt;
+&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:47:42 2009&lt;/div&gt;
 &lt;/BODY&gt;
 &lt;/HTML&gt;</diff>
      <filename>api/index-all.html</filename>
    </modified>
    <modified>
      <diff>@@ -118,7 +118,7 @@ function asd() {
  * Holds misc. information.
  */&lt;/span&gt;
 JsChat = {
-  version: &lt;span class=&quot;literal&quot;&gt;'0.2.0'&lt;/span&gt;,
+  version: &lt;span class=&quot;literal&quot;&gt;'0.2.1'&lt;/span&gt;,
   site: &lt;span class=&quot;literal&quot;&gt;'http://oshuma.github.com/js-chat/'&lt;/span&gt;,
 };
 
@@ -178,13 +178,13 @@ Server.defaults = {
  */&lt;/span&gt;
 &lt;span class=&quot;reserved&quot;&gt;function&lt;/span&gt; Server(options) {
   &lt;span class=&quot;reserved&quot;&gt;this&lt;/span&gt;.initialized = false;
-  &lt;span class=&quot;reserved&quot;&gt;if&lt;/span&gt; (typeof(options) == &lt;span class=&quot;literal&quot;&gt;'undefined'&lt;/span&gt;) {
+  &lt;span class=&quot;reserved&quot;&gt;if&lt;/span&gt; (!options) {
     &lt;span class=&quot;comment&quot;&gt;// No options passed, just use the defaults.&lt;/span&gt;
     &lt;span class=&quot;reserved&quot;&gt;this&lt;/span&gt;.options = Server.defaults;
   } &lt;span class=&quot;reserved&quot;&gt;else&lt;/span&gt; {
     &lt;span class=&quot;comment&quot;&gt;// Merge the passed options with the defaults.&lt;/span&gt;
     &lt;span class=&quot;reserved&quot;&gt;for&lt;/span&gt; (value in Server.defaults) {
-      &lt;span class=&quot;reserved&quot;&gt;if&lt;/span&gt; (typeof(options[value]) == &lt;span class=&quot;literal&quot;&gt;'undefined'&lt;/span&gt;)
+      &lt;span class=&quot;reserved&quot;&gt;if&lt;/span&gt; (!options[value])
         options[value] = Server.defaults[value];
     }
     &lt;span class=&quot;reserved&quot;&gt;this&lt;/span&gt;.options = options;
@@ -308,6 +308,6 @@ Server.&lt;span class=&quot;reserved&quot;&gt;prototype&lt;/span&gt;.run = &lt;span class=&quot;reserved&quot;&gt;func
 &lt;font size=&quot;-1&quot;&gt;
 
 &lt;/font&gt;
-&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; target=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:06:43 2009&lt;/div&gt;
+&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; target=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:47:42 2009&lt;/div&gt;
 &lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>api/overview-summary-js-chat.js.html</filename>
    </modified>
    <modified>
      <diff>@@ -168,6 +168,6 @@ function asd() {
 &lt;font size=&quot;-1&quot;&gt;
 
 &lt;/font&gt;
-&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; target=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:06:43 2009&lt;/div&gt;
+&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; target=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:47:42 2009&lt;/div&gt;
 &lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>api/overview-summary.html</filename>
    </modified>
    <modified>
      <diff>@@ -118,6 +118,6 @@ parent.document.title=&quot;js-chat Class Hierarchy&quot;;
 &lt;FONT SIZE=&quot;-1&quot;&gt;
 
 &lt;/FONT&gt;
-&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; parent=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:06:43 2009&lt;/div&gt;
+&lt;div class=&quot;jsdoc_ctime&quot;&gt;Documentation generated by &lt;a href=&quot;http://jsdoc.sourceforge.net/&quot; parent=&quot;_parent&quot;&gt;JSDoc&lt;/a&gt; on Fri Jul  3 02:47:42 2009&lt;/div&gt;
 &lt;/BODY&gt;
 &lt;/HTML&gt;</diff>
      <filename>api/overview-tree.html</filename>
    </modified>
    <modified>
      <diff>@@ -30,6 +30,10 @@ input {
   margin-bottom: 0.5em;
 }
 
+#version {
+  font-size: 0.5em;
+}
+
 #wrapper {
   border: 3px solid #000;
   margin: -1.3em 6.5em;
@@ -56,7 +60,7 @@ input {
 
 #sidebar {
   position: fixed;
-  top: 72px;
+  top: 5px;
   right: 5px;
 
   border: 3px dashed #888;</diff>
      <filename>demo/application.css</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,12 @@
-// Shorthand helper.
+// Shorthand helper to grab an element by id.
 function element(id) {
   return document.getElementById(id);
 }
 
 // This function will be called once the DOM is loaded.
 window.onload = function() {
+  element('version').innerHTML = 'v' + JsChat.version;
+
   // 'Database' to store the messages; with a few test messages.
   var allMessages = [
     'Robot 1: Kill all humans.',</diff>
      <filename>demo/application.js</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@
 
   &lt;body&gt;
     &lt;div id=&quot;header&quot;&gt;
-      &lt;h1&gt;js-chat&lt;/h1&gt;
+      &lt;h1&gt;js-chat &lt;span id=&quot;version&quot;&gt;&lt;/span&gt;&lt;/h1&gt;
     &lt;/div&gt;
 
     &lt;div id=&quot;wrapper&quot;&gt;</diff>
      <filename>demo/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@
  * Holds misc. information.
  */
 JsChat = {
-  version: '0.2.0',
+  version: '0.2.1',
   site: 'http://oshuma.github.com/js-chat/',
 };
 
@@ -63,13 +63,13 @@ Server.defaults = {
  */
 function Server(options) {
   this.initialized = false;
-  if (typeof(options) == 'undefined') {
+  if (!options) {
     // No options passed, just use the defaults.
     this.options = Server.defaults;
   } else {
     // Merge the passed options with the defaults.
     for (value in Server.defaults) {
-      if (typeof(options[value]) == 'undefined')
+      if (!options[value])
         options[value] = Server.defaults[value];
     }
     this.options = options;</diff>
      <filename>demo/js-chat.js</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@
  * Holds misc. information.
  */
 JsChat = {
-  version: '0.2.0',
+  version: '0.2.1',
   site: 'http://oshuma.github.com/js-chat/',
 };
 
@@ -63,13 +63,13 @@ Server.defaults = {
  */
 function Server(options) {
   this.initialized = false;
-  if (typeof(options) == 'undefined') {
+  if (!options) {
     // No options passed, just use the defaults.
     this.options = Server.defaults;
   } else {
     // Merge the passed options with the defaults.
     for (value in Server.defaults) {
-      if (typeof(options[value]) == 'undefined')
+      if (!options[value])
         options[value] = Server.defaults[value];
     }
     this.options = options;</diff>
      <filename>js-chat.js</filename>
    </modified>
    <modified>
      <diff>@@ -30,13 +30,13 @@ function debug(message) {
 
 function createServer(options, poll, send) {
   // Set some defaults.
-  if (typeof(options) == 'undefined') options = Server.defaults;
-  if (typeof(poll) == 'undefined') {
+  if (!options) options = Server.defaults;
+  if (!poll) {
     poll = function() {
       element('dom_test').innerHTML += 'Polling...\n';
     }
   }
-  if (typeof(server) == 'undefined') {
+  if (!server) {
     send = function(person, message) {
       theMessage = person.name + ': ' + message + '\n';
       element('dom_test').innerHTML += theMessage;</diff>
      <filename>test/spec_helper.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>31337dbd14b520df69d9117586ee5285596c2610</id>
    </parent>
  </parents>
  <author>
    <name>Dale Campbell</name>
    <email>dale@save-state.net</email>
  </author>
  <url>http://github.com/Oshuma/js-chat/commit/e59399687607948013c9168083c1208641e3b625</url>
  <id>e59399687607948013c9168083c1208641e3b625</id>
  <committed-date>2009-07-03T00:47:56-07:00</committed-date>
  <authored-date>2009-07-03T00:47:56-07:00</authored-date>
  <message>added version</message>
  <tree>9ca05c84ad6e63a723541851e72eb3c51f78f76b</tree>
  <committer>
    <name>Dale Campbell</name>
    <email>dale@save-state.net</email>
  </committer>
</commit>
