From 7c77aa914eb96c2b5b797e37c16aa786c05f38e8 Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Wed, 2 May 2012 16:50:38 -0700 Subject: Converting geom-obj to object literal notation. Signed-off-by: Nivesh Rajbhandari --- js/lib/geom/rectangle.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'js/lib/geom/rectangle.js') diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js index 4b917b3c..d75abb05 100755 --- a/js/lib/geom/rectangle.js +++ b/js/lib/geom/rectangle.js @@ -158,7 +158,7 @@ exports.Rectangle = Object.create(GeomObj, { }, setTLRadius: { - value: function(w) { + value: function(r) { this._tlRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2); } }, @@ -170,7 +170,7 @@ exports.Rectangle = Object.create(GeomObj, { }, setTRRadius: { - value: function(w) { + value: function(r) { this._trRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2); } }, @@ -182,7 +182,7 @@ exports.Rectangle = Object.create(GeomObj, { }, setBLRadius: { - value: function(w) { + value: function(r) { this._blRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2); } }, @@ -194,7 +194,7 @@ exports.Rectangle = Object.create(GeomObj, { }, setBRRadius: { - value: function(w) { + value: function(r) { this._brRadius = Math.min(r, (this._height - this._strokeWidth)/2, (this._width - this._strokeWidth)/2); } }, @@ -1282,11 +1282,4 @@ RectangleGeometry.getVertex = RectangleFill.getVertex; RectangleGeometry.getUV = RectangleFill.getUV; -Rectangle.prototype = new GeomObj(); - -if (typeof exports === "object") { - exports.Rectangle = Rectangle; -} - - -- cgit v1.2.3