private static in javascript and inheritance
<p>I understand how private static mechanism works in javascript; but that screws in 
inheritance.
For example:</p>

<pre><code>var Car = (function() {
    var priv_static_count = 0;
    return function() {
        priv_static_count = priv_static_count + 1;   
    }
})();
var SedanCar = function () {};
SedanCar.prototype = new Car();
SedanCar.prototype.constructor = SedanCar;
</code></pre>

<p>Is there any way to avoid this pitfall ?</p>
