mediawiki-extensions-Visual.../modules/ve/ui
Ed Sanders 8b09dd7650 The resurrection
By removing the transaction listeners from surface fragments we
no longer have to make sure they are always manually destroyed.

In order to retain the functionality of having fragments update
with transactions elsewhere we keep a pointer to a place in the
new complete history stack in the surface. The complete history
stack records all transactions, even undone ones.

Whenever getRange is called we replay all transactions in the
complete history (in the correct order) since the fragment was
last updated.

Also in this commit:
* Updated Format/IndentationAction to test undo(). This increases
  coverage of surface fragment behaviour.
* .range is always accessed by .getRange now, although as an
  optimisation we can use the noCopy mode when we a sure the
  returned range will not be modified.
* Added undo test to .update (previously .onTransact)

Bug: 47343
Change-Id: I9e9818da1baa8319a3002f6d74fd1aad6732a8f5
2013-04-22 12:50:23 +01:00
..
dialogs UI "Views" refactor 2013-04-18 15:53:50 -07:00
elements Stack panel, element mixins, cleanup 2013-03-28 12:40:01 -07:00
inspectors The resurrection 2013-04-22 12:50:23 +01:00
layouts Stack panel, element mixins, cleanup 2013-03-28 12:40:01 -07:00
styles Dialog button changes 2013-04-10 12:34:52 -07:00
tools UI "Views" refactor 2013-04-18 15:53:50 -07:00
widgets ve.ui.SelectWidget: Keep track of mouse down 2013-04-17 11:40:16 +00:00
ve.ui.Context.js The resurrection 2013-04-22 12:50:23 +01:00
ve.ui.Dialog.js Dialog button changes 2013-04-10 12:34:52 -07:00
ve.ui.DialogFactory.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.Element.js Doc: Replace "@property @type {Type}" with "@property {Type}". 2013-03-28 21:21:56 +01:00
ve.ui.Frame.js Merge "Initialize iframe for dialog with correct doctype" 2013-04-19 18:53:12 +00:00
ve.ui.Inspector.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.InspectorFactory.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.js Group, Select, Option, Outline and MenuSection widgets 2013-03-20 22:55:32 +00:00
ve.ui.Layout.js Layouts, grids and panels 2013-03-15 15:12:56 -07:00
ve.ui.Tool.js Doc: Replace "@property @type {Type}" with "@property {Type}". 2013-03-28 21:21:56 +01:00
ve.ui.Toolbar.js The resurrection 2013-04-22 12:50:23 +01:00
ve.ui.ToolFactory.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.ui.ViewRegistry.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.Widget.js Layouts, grids and panels 2013-03-15 15:12:56 -07:00
ve.ui.Window.js Dialog button changes 2013-04-10 12:34:52 -07:00
ve.ui.WindowSet.js No more confusing boolean argument for closing windows 2013-04-10 12:31:49 -07:00