Extend Array using John Resig Extend
<p>I have been using John Resig's simple inheritance scheme in my project.
<a href="http://ejohn.org/blog/simple-javascript-inheritance/" rel="nofollow">http://ejohn.org/blog/simple-javascript-inheritance/</a></p>

<p>Basically, I have an object that I want to use as an array, but with some more properties. </p>

<p>I'm aware that there are other ways to extend Array, however I have been using this extend method throughout my code, so I would like it to be consistent.</p>

<p>I would like something like this, it's very awkward though:</p>

<pre><code>var Array2 = Class.extend(Array);
var Foo = Array2.extend(
{
  init : function() {
  }
});
</code></pre>

<p>EDIT: One of the major problems is that the 'length' property is not properly updated when you add something via index. I.e </p>

<pre><code>var x = new Foo(); 
x[0] = "test";
alert(x.length) //0
</code></pre>
