r93331 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93330‎ | r93331 | r93332 >
Date:23:00, 27 July 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Cleanup
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Position.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Position.js
@@ -43,9 +43,10 @@
4444 };
4545
4646 es.Position.prototype.near = function( position, range ) {
47 - var x = this.left - position.left,
48 - y = this.top - position.top;
49 - return Math.sqrt( x * x, y * y ) <= range;
 47+ return Math.sqrt(
 48+ Math.pow( this.left - position.left, 2 ),
 49+ Math.pow( this.top - position.top )
 50+ ) <= range;
5051 };
5152
5253 es.Position.prototype.above = function( position ) {

Status & tagging log