Fix a bug in #getFixedDistance() where equals was used on numbers (Java port left-over).

This commit is contained in:
Jürg Lehni 2011-03-04 19:16:25 +00:00
parent 101cb11973
commit 702899b382

View file

@ -47,8 +47,7 @@ var ToolHandler = this.ToolHandler = Base.extend({
},
getFixedDistance: function() {
if (this._minDistance != null
&& this._minDistance.equals(this._maxDistance))
if (this._minDistance == this._maxDistance)
return this._minDistance;
return null;
},