mediawiki-extensions-Visual.../modules/ve/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
..
annotations Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
nodes Remove ve.getHash and use getHash from oojs instead 2013-10-22 19:14:23 +00:00
styles Show a label with the current dimensions while resizing 2013-10-16 16:42:12 +01:00
ve.ce.Annotation.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.ce.AnnotationFactory.js Remove ve.Factory and ve.Registry and use oojs instead 2013-10-22 19:15:18 +00:00
ve.ce.BranchNode.js Rename @emits to @fires so we're forward compatible with JSDuck 5 2013-10-22 19:11:16 +00:00
ve.ce.ContentBranchNode.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.ce.Document.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.ce.DomRange.js doc: @return -> @returns 2013-08-01 02:10:23 +02:00
ve.ce.FocusableNode.js Use update rather than show in focusable node re-render 2013-10-23 14:35:55 +01:00
ve.ce.js Add basic ve.ce.tests and fix documentation 2013-09-23 16:33:15 +01:00
ve.ce.LeafNode.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.ce.Node.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.ce.NodeFactory.js Remove ve.Factory and ve.Registry and use oojs instead 2013-10-22 19:15:18 +00:00
ve.ce.ProtectedNode.js Migrate away from using the 'change' event in dm.Surface 2013-10-23 11:54:35 -07:00
ve.ce.RelocatableNode.js Add more resize events 2013-10-14 12:18:57 +01:00
ve.ce.ResizableNode.js Merge "Cache multiple requests for $resizable's offset" 2013-10-22 20:30:18 +00:00
ve.ce.Surface.js Rename @emits to @fires so we're forward compatible with JSDuck 5 2013-10-22 19:11:16 +00:00
ve.ce.SurfaceObserver.js Rename @emits to @fires so we're forward compatible with JSDuck 5 2013-10-22 19:11:16 +00:00
ve.ce.View.js Merge "Fix typo in documentation for ve.ce.View.prototype.getModel" 2013-10-23 13:45:26 +00:00