diff --git a/src/basic/Point.js b/src/basic/Point.js index 0a4bef8a..5597358d 100644 --- a/src/basic/Point.js +++ b/src/basic/Point.js @@ -467,11 +467,7 @@ var Point = Base.extend(/** @lends Point# */{ * @bean */ getLength: function() { - // Supports a hidden parameter 'squared', which controls whether the - // squared length should be returned. Hide it so it produces a bean - // property called #length. - var length = this.x * this.x + this.y * this.y; - return arguments.length && arguments[0] ? length : Math.sqrt(length); + return Math.sqrt(this.x * this.x + this.y * this.y); }, setLength: function(length) {