I\'m using this clone method for prototypal inheritance from Pro JavaScript Design Patterns which is basically the same as Crockford\'s object() function. (The only difference i
with prototype you have to do things a little different:
var Viewport = {}; Viewport.prototype.inOrOut = function(){...}; Viewport.prototype.width= function(){...}; Viewport.prototype.height = function(){...};
this way, you will be able to inherit properly...