<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>demo.html</filename>
    </added>
    <added>
      <filename>informant.min.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,7 @@
 
 The Informant spies on your forms and warns people if they try to leave a form with unsaved changes.
 
-Learn more at: http://indielabs.com/entries/the-informant/
+Check out the included demo.html, or learn more at: http://indielabs.com/entries/the-informant/
 
 == Usage
 
@@ -12,7 +12,3 @@ Simply include Prototype 1.6+ and The Informant.
   &lt;script src=&quot;informant.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
 
 View informant.js for customization options.
-
-== Copyright
-
-Copyright (c) 2008 Matt Wigham - Indie Labs, LLC, released under the MIT license
\ No newline at end of file</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -1,37 +1,37 @@
-//=======================================================================
-// 
-//  Informant : informant.js : Version 1.1 : 4/11/2008
-//  By Indie Labs (indielabs.com)
-//
-//  The Informant spies on your forms and warns people if they try to leave
-//  a form that has been changed but not saved.
-// 
-//  Learn more at: http://indielabs.com/entries/the-informant/
-// 
-//  Requires Prototype 1.6+ : http://prototypejs.org
-// 
-//  Copyright (c) 2005-2008 Indie Labs, LLC. All rights reserved.
-// 
-//  Permission is hereby granted, free of charge, to any person obtaining
-//  a copy of this software and associated documentation files (the
-//  &quot;Software&quot;), to deal in the Software without restriction, including
-//  without limitation the rights to use, copy, modify, merge, publish,
-//  distribute, sublicense, and/or sell copies of the Software, and to
-//  permit persons to whom the Software is furnished to do so, subject to
-//  the following conditions:
-//
-//  The above copyright notice and this permission notice shall be
-//  included in all copies or substantial portions of the Software.
-//
-//  THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,
-//  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-//  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-//  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-//  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-//  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-//  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//  
-//=======================================================================
+/************************************************************************
+
+ Informant : informant.js : Version 1.2 : 3/3/2009
+ By Indie Labs (indielabs.com)
+
+ The Informant spies on your forms and warns people if they try to leave
+ a form that has been changed but not saved.
+
+ Learn more at: http://indielabs.com/entries/the-informant/
+
+ Requires Prototype 1.6+ : http://prototypejs.org
+
+ Copyright (c) 2005-2008 Indie Labs, LLC. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ &quot;Software&quot;), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ 
+************************************************************************/
 
 Element.addMethods({	
 	hasSubmitButton: function(element) {
@@ -46,7 +46,7 @@ var Informant = {
 	
 	skipClass: &quot;uninformed&quot;, // put this class on your forms if you don't want them watched
 	
-	delay: 1000, // some forms require time to hide certain fields, etc
+	delay: 1000, // some forms require time to hide certain fields, etc.
 	
 	initialize: function() {
 		
@@ -57,26 +57,26 @@ var Informant = {
 			return !form.hasSubmitButton();
 		}.bind(this));
 		
-		if(this.forms.length == 0) return;
+		if(this.forms.length === 0) { return; }
 				
 		this.forms.each(function(form) {
 			form.before  = form.serialize();
-			form.unsaved = function(){ return this.before != this.serialize(); }
+			form.unsaved = function(){ return this.before != this.serialize(); };
 			Event.observe(form, 'submit', function(event){ form.before = form.serialize(); });
 		});
 		
 		// can't observe this in Safari, so we'll ram that bad boy on there
-		window.onbeforeunload = function() {
-			if(this.unsaved()) return this.message;
+		window.onbeforeunload = function() {			
+			if(this.unsaved()) { return this.message; }
 		}.bind(this);
 	},
 		
 	unsaved: function() {
-		return this.forms.find(function(form){ return form.unsaved(); }) != null;
+		return this.forms.find(function(form){ return form.unsaved(); }) !== undefined;
 	}
 
 };
 
 document.observe('dom:loaded', function() {
-	setTimeout('Informant.initialize()', Informant.delay);
+	setTimeout(function(){ Informant.initialize(); }, Informant.delay);
 });
\ No newline at end of file</diff>
      <filename>informant.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8bd7106e6ea44c9f53afe65a7bbd9a8ad5f04229</id>
    </parent>
  </parents>
  <author>
    <name>Matt Wigham</name>
    <email>ihearithurts@gmail.com</email>
  </author>
  <url>http://github.com/ihearithurts/informant/commit/4cc14efe438fd1e61eb21a2901986aab86ba53eb</url>
  <id>4cc14efe438fd1e61eb21a2901986aab86ba53eb</id>
  <committed-date>2009-03-03T10:01:12-08:00</committed-date>
  <authored-date>2009-03-03T10:01:12-08:00</authored-date>
  <message>Created minified version and a simple demo</message>
  <tree>24497682a7d26818c37f7af4d54bd6ea4565168a</tree>
  <committer>
    <name>Matt Wigham</name>
    <email>ihearithurts@gmail.com</email>
  </committer>
</commit>
