r103017 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103016‎ | r103017 | r103018 >
Date:19:51, 14 November 2011
Author:inez
Status:deferred
Tags:
Comment:
Add comments for mouse interaction states
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
@@ -40,10 +40,19 @@
4141 this.$.append( this.documentView.$ );
4242
4343 // Interaction state
 44+
 45+ // There are three different selection modes available for mouse. Selection of:
 46+ // * 1 - chars
 47+ // * 2 - words
 48+ // * 3 - nodes (e.g. paragraph, listitem)
 49+ //
 50+ // In case of 2 and 3 selectedRange stores the range of original selection caused by double
 51+ // or triple mousedowns.
4452 this.mouse = {
4553 selectingMode: null,
4654 selectedRange: null
4755 };
 56+
4857 this.cursor = {
4958 $: $( '<div class="es-surfaceView-cursor"></div>' ).appendTo( this.$ ),
5059 interval: null,

Status & tagging log