Index: trunk/parsers/wikidom/lib/es/es.Surface.js |
— | — | @@ -47,11 +47,11 @@ |
48 | 48 | }; |
49 | 49 | |
50 | 50 | // MouseDown on surface |
51 | | - this.$.bind({ |
| 51 | + this.$.bind( { |
52 | 52 | 'mousedown' : function(e) { |
53 | 53 | return surface.onMouseDown( e ); |
54 | 54 | } |
55 | | - }); |
| 55 | + } ); |
56 | 56 | |
57 | 57 | // Selection |
58 | 58 | this.$ranges = $( '<div class="editSurface-ranges"></div>' ).prependTo( this.$ ); |
— | — | @@ -324,12 +324,13 @@ |
325 | 325 | clearTimeout( this.mouse.clickTimeout ); |
326 | 326 | var clickPosition = es.Position.newFromEventPagePosition( e ); |
327 | 327 | if ( this.mouse.clickPosition && |
328 | | - this.mouse.clickPosition.near( clickPosition, this.mouse.hotSpotRadius ) ) { |
| 328 | + clickPosition.near( this.mouse.clickPosition, this.mouse.hotSpotRadius ) ) { |
329 | 329 | // Same location, keep counting |
330 | 330 | this.mouse.clicks++; |
331 | 331 | var surface = this; |
332 | 332 | this.mouse.clickTimeout = setTimeout( function() { |
333 | 333 | surface.mouse.clicks = 0; |
| 334 | + surface.mouse.clickPosition = null; |
334 | 335 | }, this.mouse.clickDelay ); |
335 | 336 | } else { |
336 | 337 | // New location, start over |