r93350 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93349‎ | r93350 | r93351 >
Date:00:28, 28 July 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Cleanup
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Surface.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Surface.js
@@ -47,11 +47,11 @@
4848 };
4949
5050 // MouseDown on surface
51 - this.$.bind({
 51+ this.$.bind( {
5252 'mousedown' : function(e) {
5353 return surface.onMouseDown( e );
5454 }
55 - });
 55+ } );
5656
5757 // Selection
5858 this.$ranges = $( '<div class="editSurface-ranges"></div>' ).prependTo( this.$ );
@@ -324,12 +324,13 @@
325325 clearTimeout( this.mouse.clickTimeout );
326326 var clickPosition = es.Position.newFromEventPagePosition( e );
327327 if ( this.mouse.clickPosition &&
328 - this.mouse.clickPosition.near( clickPosition, this.mouse.hotSpotRadius ) ) {
 328+ clickPosition.near( this.mouse.clickPosition, this.mouse.hotSpotRadius ) ) {
329329 // Same location, keep counting
330330 this.mouse.clicks++;
331331 var surface = this;
332332 this.mouse.clickTimeout = setTimeout( function() {
333333 surface.mouse.clicks = 0;
 334+ surface.mouse.clickPosition = null;
334335 }, this.mouse.clickDelay );
335336 } else {
336337 // New location, start over

Status & tagging log