mediawiki-extensions-Visual.../modules/ve/test/ce
Roan Kattouw 53e4c370ea Migrate away from using the 'change' event in dm.Surface
Instead, listen to 'select', or to 'transact' on the dm.Document.

This commit only fixes uses outside of the dm/ce.Surface ecosystem.
ce.Surface still listens to 'change'.

ve.init.mw.ViewPageTarget.js:
* Rename onSurfaceModelTransact to clearSaveDialogDiff and bind it to
  the document's transact event instead
* Rename onSurfaceModelChange to checkForWikitextWarning and bind it
  to the surface's transact event. This is needed because the function
  inspects the surface's selection, which isn't yet in a consistent
  state when the document's transact event fires

ve.ui.MWReferenceDialog.js:
* Rename onSurfaceChange to onDocumentTransact and rebind accordingly

ve.ce.ProtectedNode.js:
* Get rid of onSurfaceModelChange
* Instead, bind positionPhantoms to the document's transact event
  directly, and only bind it while phantoms are visible

ve.ui.Context.js:
* Rename onChange to onModelSelect and rebind accordingly
* Rename afterChange to afterModelSelect
* Drop check for undefined selection, no longer needed now that we're
  listening to a finer-grained event

ve.ce.Surface.test.js:
* Listen to 'select' instead of 'change'

Change-Id: Ifeb1a1fc5427696f2aae5441d4b54dde366793e0
2013-10-23 11:54:35 -07:00
..
nodes getRenderedContents() optimizations 2013-06-22 19:37:10 -07:00
ve.ce.BranchNode.test.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.ce.ContentBranchNode.test.js Subscript is one word (and so is superscript for that matter) 2013-08-20 13:34:50 -07:00
ve.ce.Document.test.js The great directory split of 2013 2013-07-02 20:51:38 -07:00
ve.ce.LeafNode.test.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.ce.Node.test.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.ce.NodeFactory.test.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.ce.Surface.test.js Migrate away from using the 'change' event in dm.Surface 2013-10-23 11:54:35 -07:00
ve.ce.test.js Destroy test surfaces 2013-10-08 11:16:10 +02:00