Javascript and Inheritance
<p>Say I have a <em>Class</em>:</p>

<pre><code>function Foo() {
  this.foo1 =  null;
  this.foo2 = function() { return false;};
}
</code></pre>

<p>And I want other objects to inherit variables &amp; functions from it.</p>

<pre><code>function Bar(){}
function Baz(){}
</code></pre>

<p>Then instantiate my objects:</p>

<pre><code>var bar = new Bar();
bar.foo1   // returns null
bar.foo2() // returns false
</code></pre>

<p>What's the proper function to <em>include</em> <code>Foo</code> in <code>Bar</code> and <code>Baz</code>?</p>

<hr>

<p>I already did <code>Bar.prototype = new Foo();</code> but it seems to fail on our beloved IE (&lt;9).</p>
