<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -80,9 +80,15 @@
     delegate: function(rules) {
       return function(e) {
         var target = $(e.target);
-        for (var selector in rules) {
-          if (target.is(selector) || ((target = target.parents(selector)) &amp;&amp; target.length &gt; 0)) 
-            return rules[selector].apply(this, [target].concat($.makeArray(arguments)));
+        // first check the target itself
+        for(var selector in rules){
+          if (target.is(selector))
+            return rules[selector].apply(this, $.makeArray(arguments));
+        }
+        // then, jump up to parents
+        for(var selector in rules){
+          if ((target = target.parents(selector)) &amp;&amp; target.length &gt; 0)
+           return rules[selector].apply(this, [target].concat($.makeArray(arguments)));
         }
       }
     }</diff>
      <filename>src/lowpro.jquery.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4d43eae57a6c5721a23769ef0738d95c8f20e6d1</id>
    </parent>
  </parents>
  <author>
    <name>Sudara</name>
    <email>sudara@alonetone.com</email>
  </author>
  <url>http://github.com/sudara/low-pro-for-jquery/commit/f564b67abd288a6bbc1ff79223e28cabd237f133</url>
  <id>f564b67abd288a6bbc1ff79223e28cabd237f133</id>
  <committed-date>2008-04-19T05:01:41-07:00</committed-date>
  <authored-date>2008-04-19T05:01:41-07:00</authored-date>
  <message>make delegate match the source element first, and only check parents when no matching source</message>
  <tree>ca1a03d525d9ca31a953366f759c9a8fffc017e2</tree>
  <committer>
    <name>Sudara</name>
    <email>sudara@alonetone.com</email>
  </committer>
</commit>
