diff --git a/README.md b/README.md index 425ab4e..652cc2a 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ var Rectangle = Class.extend({ Object.defineProperty(this, "area", { get:function (){ return this.width * this.height; }, enumerable:true, configurable:true }); }, returnFn:function (width, height){ - return (width||0) * (height||0); + return Math.abs((width||0) * (height||0)); }, extensions:{ foo:"I am a rectangle."