<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>jquery-1.2.2.pack.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -36,32 +36,26 @@
         &lt;div class=&quot;case&quot;&gt;
             &lt;p&gt;The following field should contain the example text &quot;Simple example&quot;.&lt;/p&gt;
             &lt;p&gt;&lt;input id=&quot;simple&quot; type=&quot;text&quot; /&gt;&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;
-$('#simple').example('Simple example');
-&lt;/code&gt;&lt;/pre&gt;
+&lt;pre&gt;&lt;code&gt;$('#simple').example('Simple example');&lt;/code&gt;&lt;/pre&gt;
         &lt;/div&gt;
         &lt;div class=&quot;case&quot;&gt;
-        &lt;p&gt;The following field should contain the example text &quot;Christian name&quot; and the label and line-break before it should be hidden.&lt;/p&gt;
+        &lt;p&gt;The following field should contain the example text &quot;Forename&quot; and the label and line-break before it should be hidden.&lt;/p&gt;
         &lt;p&gt;
         	&lt;label for=&quot;first_name&quot;&gt;First name&lt;/label&gt;&lt;br /&gt;
         	&lt;input id=&quot;first_name&quot; name=&quot;first_name&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;
         &lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;
-$('#first_name').example('Christian name', {
+&lt;pre&gt;&lt;code&gt;$('#first_name').example('Forename', {
 	hide_label: true
-});
-&lt;/code&gt;&lt;/pre&gt;
+});&lt;/code&gt;&lt;/pre&gt;
         &lt;/div&gt;
         &lt;div class=&quot;case&quot;&gt;
         &lt;p&gt;The following field should contain the example text &quot;Boys 4pk Sports&quot; and have no label and line-break preceding it despite setting &quot;hide_label&quot; to true (there wasn't anything to hide).&lt;/p&gt;
         &lt;p&gt;
             &lt;label for=&quot;description&quot;&gt;Description&lt;/label&gt;&lt;input id=&quot;description&quot; name=&quot;description&quot; type=&quot;text&quot; /&gt;
         &lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;
-$('#description').example('Boys 4pk Sports', {
+&lt;pre&gt;&lt;code&gt;$('#description').example('Boys 4pk Sports', {
 	hide_label: true
-});
-&lt;/pre&gt;&lt;/code&gt;
+});&lt;/pre&gt;&lt;/code&gt;
         &lt;/div&gt;
         &lt;div class=&quot;case&quot;&gt;
         &lt;p&gt;The following field should contain the example text &quot;First!&quot; in pink text and it should have a label and line-break before it reading &quot;Comments&quot;.&lt;/p&gt;
@@ -69,23 +63,19 @@ $('#description').example('Boys 4pk Sports', {
         	&lt;label for=&quot;comments&quot;&gt;Comments&lt;/label&gt;&lt;br /&gt;
         	&lt;textarea id=&quot;comments&quot; name=&quot;comments&quot;&gt;&lt;/textarea&gt;
         &lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;
-$('#comments').example('First!', {
+&lt;pre&gt;&lt;code&gt;$('#comments').example('First!', {
 	hide_label: false,
 	class_name: 'not_example'
-});
-&lt;/pre&gt;&lt;/code&gt;
+});&lt;/pre&gt;&lt;/code&gt;
         &lt;/div&gt;
         &lt;div class=&quot;case&quot;&gt;
         &lt;p&gt;The following field should contain the example text &quot;Type here...&quot; in pink text.&lt;/p&gt;
         &lt;p&gt;
         	&lt;textarea id=&quot;content&quot;&gt;&lt;/textarea&gt;
         &lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;
-$('#content').example('Type here...', {
+&lt;pre&gt;&lt;code&gt;$('#content').example('Type here...', {
 	class_name: 'not_example'
-});
-&lt;/pre&gt;&lt;/code&gt;
+});&lt;/pre&gt;&lt;/code&gt;
         &lt;/div&gt;
         &lt;div class=&quot;case&quot;&gt;
         &lt;p&gt;The following fields should all contain the same example text of &quot;Several at once.&quot;&lt;/p&gt;
@@ -95,31 +85,41 @@ $('#content').example('Type here...', {
         	&lt;input type=&quot;text&quot; class=&quot;multiple&quot; /&gt;
         	&lt;input type=&quot;text&quot; class=&quot;multiple&quot; /&gt;
         &lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;
-$('.multiple').example('Several at once.');
-&lt;/code&gt;&lt;/pre&gt;
+&lt;pre&gt;&lt;code&gt;$('.multiple').example('Several at once.');&lt;/code&gt;&lt;/pre&gt;
         &lt;/div&gt;
         &lt;div class=&quot;case&quot;&gt;
         &lt;p&gt;The following field should have a value of &quot;I already have a value&quot; on page load but once cleared should have the example text of &quot;This should not appear on page load.&quot;&lt;/p&gt;
         &lt;p&gt;
         	&lt;input id=&quot;prefilled&quot; type=&quot;text&quot; value=&quot;I already have a value&quot; /&gt;
         &lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;
-$('#prefilled').example('This should not appear on page load.');
-&lt;/pre&gt;&lt;/code&gt;
+&lt;pre&gt;&lt;code&gt;$('#prefilled').example('This should not appear on page load.');&lt;/pre&gt;&lt;/code&gt;
         &lt;/div&gt;
         &lt;div class=&quot;case&quot;&gt;
+        &lt;p&gt;The following three fields should have values of &quot;Not example by default&quot; in pink text as they are all styled with the CSS class name &quot;not_example&quot; by changing the plugin defaults.&lt;/p&gt;
+        &lt;p&gt;
+        	&lt;input id=&quot;defaults_test_1&quot; type=&quot;text&quot; /&gt;
+        	&lt;input id=&quot;defaults_test_2&quot; type=&quot;text&quot; /&gt;
+        	&lt;input id=&quot;defaults_test_3&quot; type=&quot;text&quot; /&gt;
+        &lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;$.fn.example.defaults.class_name = 'not_example';
+$('#defaults_test_1').example('Not example by default');
+$('#defaults_test_2').example('Not example by default');
+$('#defaults_test_3').example('Not example by default');&lt;/pre&gt;&lt;/code&gt;
+        &lt;/div&gt;
+        
+        &lt;div class=&quot;case&quot;&gt;
         &lt;p&gt;Clicking the following submit button should clear all example text but leave real values (if this was a real form, you do not want the examples to be sent with the form).&lt;/p&gt;
         &lt;p&gt;&lt;input type=&quot;submit&quot; /&gt;&lt;/p&gt;
         &lt;/div&gt;
     &lt;/form&gt;
-    &lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.2.1.pack.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
+    &lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.2.2.pack.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
 	&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.example.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
 	&lt;!-- &lt;script type=&quot;text/javascript&quot; src=&quot;jquery.example.min.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt; --&gt;
 	&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
 		$(function() {
-		    $('#simple').example('Simple example');
-			$('#first_name').example('Christian name', {
+		  
+		  $('#simple').example('Simple example');
+			$('#first_name').example('Forename', {
 				hide_label: true
 			});
 			$('#description').example('Boys 4pk Sports', {
@@ -134,6 +134,11 @@ $('#prefilled').example('This should not appear on page load.');
 			});
 			$('.multiple').example('Several at once.');
 			$('#prefilled').example('This should not appear on page load.');
+			
+			$.fn.example.defaults.class_name = 'not_example';
+			$('#defaults_test_1').example('Not example by default');
+			$('#defaults_test_2').example('Not example by default');
+			$('#defaults_test_3').example('Not example by default');
 		});
 	&lt;/script&gt;
 &lt;/body&gt;</diff>
      <filename>README.html</filename>
    </modified>
    <modified>
      <diff>@@ -90,7 +90,12 @@
 			});
 		});
 	};
-
+  
+  /* Users can override the defaults for the plugin like so:
+   *
+   *   $.fn.example.defaults.class_name = 'not_example';
+   *   $.fn.example.defaults.hide_label = true;
+   */
 	$.fn.example.defaults = {
 		class_name: 'example',
 		hide_label: false</diff>
      <filename>jquery.example.js</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>jquery-1.2.1.pack.js</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>a21a96dfb923d867441203cf516bd055de1a21a3</id>
    </parent>
  </parents>
  <author>
    <name>Paul Mucur</name>
    <email>mudge@mudge.name</email>
  </author>
  <url>http://github.com/mudge/jquery_example/commit/6810b0c79e694177c41000865db25acded0f38ce</url>
  <id>6810b0c79e694177c41000865db25acded0f38ce</id>
  <committed-date>2008-01-25T07:23:59-08:00</committed-date>
  <authored-date>2008-01-25T07:23:59-08:00</authored-date>
  <message>Added documentation for overriding the plugin defaults.

Also upgraded to jQuery 1.2.2.</message>
  <tree>b3070885a43cf371d5eb9e566ea5ab7c8a403430</tree>
  <committer>
    <name>Paul Mucur</name>
    <email>mudge@mudge.name</email>
  </committer>
</commit>
