<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>class_include.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,12 +1,6 @@
-Element.Region = Class.create({
-  initialize: function(element) {
-    this.element = $(element);
-    var offset = this.element.cumulativeOffset();
-    var dim = this.element.getDimensions();
-    this.top = offset.top;
-    this.left = offset.left;
-    this.bottom = this.top + dim.height;
-    this.right = this.left + dim.width;
+Region = Class.create({
+  initialize: function(bounds) {
+    Object.extend(this, bounds);
   },
   contains: function(other) {
     return other.left &gt;= this.left &amp;&amp; 
@@ -20,4 +14,18 @@ Element.Region = Class.create({
       ((other.top &gt;= this.top &amp;&amp; other.top &lt;= this.bottom) ||
       (other.bottom &gt;= this.top &amp;&amp; other.bottom &lt;= this.bottom));
   }
+});
+
+Element.Region = Class.create(Region, {
+  initialize: function($super, element) {
+    this.element = $(element);
+    var offset = this.element.cumulativeOffset();
+    var dim = this.element.getDimensions();
+    return $super({
+      top: offset.top,
+      left: offset.left,
+      bottom: offset.top + dim.height,
+      right: offset.left + dim.width
+    })
+  }
 });
\ No newline at end of file</diff>
      <filename>experimental/element_region.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d5a96c93a87042c1502c8aabb3556e6b81aed296</id>
    </parent>
  </parents>
  <author>
    <name>Juriy Zaytsev</name>
    <email>juriy@kangax.local</email>
  </author>
  <url>http://github.com/kangax/protolicious/commit/e0426967ad12b412f7c242d3d347f757b1749b5a</url>
  <id>e0426967ad12b412f7c242d3d347f757b1749b5a</id>
  <committed-date>2008-08-26T21:30:50-07:00</committed-date>
  <authored-date>2008-08-26T21:30:50-07:00</authored-date>
  <message>add Element.Region and Class#include</message>
  <tree>c2dc57c9f586934a460f0e57f7d588fa1f69f4c5</tree>
  <committer>
    <name>Juriy Zaytsev</name>
    <email>juriy@kangax.local</email>
  </committer>
</commit>
