<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 /*
- * jQuery plugin: fieldSelection - v0.1.0 - last change: 2006-12-16
+ * jQuery plugin: fieldSelection - v0.1.1 - last change: 2006-12-16
  * (c) 2006 Alex Brem &lt;alex@0xab.cd&gt; - http://blog.0xab.cd
  */
 
@@ -9,7 +9,7 @@
 
 		getSelection: function() {
 
-			var e = (typeof this.id == 'function') ? this.get(0) : this;
+			var e = (this.jquery) ? this[0] : this;
 
 			return (
 
@@ -25,7 +25,7 @@
 					e.focus();
 
 					var r = document.selection.createRange();
-					if (r == null) {
+					if (r === null) {
 						return { start: 0, end: e.value.length, length: 0 }
 					}
 
@@ -38,9 +38,7 @@
 				}) ||
 
 				/* browser not supported */
-				function() {
-					return { start: 0, end: e.value.length, length: 0 };
-				}
+				function() { return null; }
 
 			)();
 
@@ -69,7 +67,7 @@
 				/* browser not supported */
 				function() {
 					e.value += text;
-					return this;
+					return jQuery(e);
 				}
 
 			)();</diff>
      <filename>jquery-fieldselection.js</filename>
    </modified>
    <modified>
      <diff>@@ -148,7 +148,7 @@
 &lt;body&gt;
 	&lt;h1&gt;jQuery plugin: &lt;span class=&quot;nuf&quot;&gt;field&lt;/span&gt;&lt;span class=&quot;fun&quot;&gt;Selection&lt;/span&gt;&lt;/h1&gt;
 	&lt;p&gt;
-		version &lt;strong&gt;0.1.0&lt;/strong&gt; &amp;ndash; 2006-12-16&lt;br /&gt;
+		version &lt;strong&gt;0.1.1&lt;/strong&gt; &amp;ndash; 2006-12-16&lt;br /&gt;
 		source: &lt;a href=&quot;jquery-fieldselection.js&quot;&gt;jquery-fieldselection.js&lt;/a&gt; &amp;middot; &lt;a href=&quot;jquery-fieldselection.pack.js&quot;&gt;jquery-fieldselection.pack.js&lt;/a&gt;&lt;br /&gt;
 		this test: &lt;a href=&quot;test.html&quot;&gt;test.html&lt;/a&gt; (tested with &lt;a href=&quot;http://jQuery.com/&quot;&gt;jQuery&lt;/a&gt; 1.0.2+)
 	&lt;/p&gt;</diff>
      <filename>test.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d33c3956cc5c32672e5c2afc3ff4f11694ea452f</id>
    </parent>
  </parents>
  <author>
    <name>Alex Brem</name>
    <email>alex@fluktuation.net</email>
  </author>
  <url>http://github.com/localhost/jquery-fieldselection/commit/22d2736a2e1ce5871e5b4067d08703ff80ceadd6</url>
  <id>22d2736a2e1ce5871e5b4067d08703ff80ceadd6</id>
  <committed-date>2008-11-14T04:02:41-08:00</committed-date>
  <authored-date>2008-11-14T04:02:41-08:00</authored-date>
  <message>just some small fixes for 0.1.0</message>
  <tree>049c38c73f8d5268d22eb22b41a6318dcab28e3c</tree>
  <committer>
    <name>Alex Brem</name>
    <email>alex@fluktuation.net</email>
  </committer>
</commit>
