<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -76,6 +76,13 @@
       klass.prototype.constructor = klass;
 
       return klass;
+    },
+    delegate: function(rules) {
+      return function(e) {
+        var target = $(e.target);
+        for (var selector in rules)
+          if (target.is(selector)) return rules[selector].apply(this, $.makeArray(arguments));
+      }
     }
   });
   </diff>
      <filename>src/lowpro.jquery.js</filename>
    </modified>
    <modified>
      <diff>@@ -28,17 +28,18 @@
 	 Clicky = $.klass({
 	   initialize: function(arg) {
 	     console.log('Ive been applied with arg: ' + arg);
+	     this.arg = arg;
 	   },
-	   onclick: function() {
-	     console.log('clicked');
-	     console.log(this.element);
-	   }
+	   onclick: $.delegate({
+ 	     '#woo': function() { alert(this.arg) },
+ 	     '#yeah': function() { console.log(this, arguments) }
+ 	   })
 	 })
 	 
 	 jQuery(function($) {
-	   $('p').attach(Clicky, 56);
+	   $('#thing').attach(Clicky, 56);
 	   $('a').attach(Remote);
-	   $('form').attach(Remote)
+	   $('form').attach(Remote);
 	 });
 	&lt;/script&gt;
 &lt;/head&gt;
@@ -52,5 +53,11 @@
   &lt;input name=&quot;thing4545&quot; /&gt;
   &lt;input type='submit' name=&quot;boo&quot; value=&quot;thing&quot; /&gt;
   &lt;input type='submit' name=&quot;boo2&quot; value=&quot;thing2&quot; /&gt;
+&lt;/form&gt;
+
+&lt;div id=&quot;thing&quot;&gt;
+  &lt;span id=&quot;yeah&quot;&gt;Yeah&lt;/p&gt;
+  &lt;span id=&quot;woo&quot;&gt;woo&lt;/span&gt;
+&lt;/div&gt;
 &lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>test/test.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9028f49d7608ef3c488b69482b0ec1ad8aa9c399</id>
    </parent>
  </parents>
  <author>
    <name>Dan Webb</name>
    <email>dan@danwebb.net</email>
  </author>
  <url>http://github.com/sudara/low-pro-for-jquery/commit/7c3dd5c36ce5b9a5d8e9d332d016e7f76eba95e6</url>
  <id>7c3dd5c36ce5b9a5d8e9d332d016e7f76eba95e6</id>
  <committed-date>2008-02-08T05:18:51-08:00</committed-date>
  <authored-date>2008-02-08T05:18:51-08:00</authored-date>
  <message>added delegate method for easy event delegation</message>
  <tree>4813e3877c66585bb42c2c16ce15c908cde54123</tree>
  <committer>
    <name>Dan Webb</name>
    <email>dan@danwebb.net</email>
  </committer>
</commit>
