posted 16 years ago
I am trying to create a Rectangle class by subclassing a Polygon class through replacing the Rectangle.prototype object. I tried to put everything inside the Rectangle constructor for better encapsulation but it seems that this does not work in both IE7 & FF. Just wondering why it doesn't.