var Geometry = function(shapeType)
{
this.shapeType = shapeType;
addEventListener("resize", this.adjust);
}
Geometry.prototype.adjust = function()
{
alert(this.shapeType);
}
.
var figure = new Geometry('rectangle');
After resizing, I expect to see an alert with the word rectangle, but it currently shows undefined