mediawiki-extensions-Visual.../modules/ve/ui
Trevor Parscal 353297e5b5 (bug 42925) Inspector doesn't open properly
ve.Range
* Rewrote truncate so that it works as expected, truncation should always reduce the length using the start/end values, not the from/to values

ve.ui.Inspector
* Added a comment about where the name argument to onBeforeInspectorOpen comes from, since it's a little bit confusing on first read (and I wrote it!)
* Calling onInitialize, onOpen and onClose methods directly, since we need to control the before or after-ness of listeners getting in there and doing their stuff - plus it's more direct
* Removed onRemove stub, which is never actually called
* Added before/after versions of initialize, open and close events
* Got rid of recursion guard since we don't need it anymore thanks to changes made in ve.dm.Surface (see below)

ve.ui.Context
* Updated event names to deal with new before/after naming of initialize, open and close events
* Removed fade-in logic since fading in doesn't even work anymore - since now we now annotate first, then open the inspector, the menu will actually exist and be open when we open the inspector even though you don't see it because it's quickly obscured

ve.ui.LinkInspector
* Made fragments non-auto selecting, in the case of onInitialize we actually call select(), which is silly since we were using an auto-selecting fragment - it's clear that this was a mistake

ve.dm.Surface
* Moved locking (polling stop and start) to the far outside edges of the change method
* I need a lot of eyes and testing on this change, it seems OK to me, but I'm suspicious that it may have side effects
* What was happening is that selection changes were being applied and then the poll was picking them up, and then the selection was coming in again as a change, but it wasn't a change at all, it was just feedback - this change event was then closing the inspector the instant it was opened - the odd part was that this only occurred when you selected backwards, which seems to be caused by the range being normalized, so it looked like a new selection even though it wasn't

ve.dm.Document
* trimOuterSpace from Range didn't consider annotated spaces to be spaces, by using the [0] trick (first character of a plain text character string or first element in an annotated character's array both are the character's value - but elements don't have a property named '0' so it skips those safely as well) we can always get the right value for comparison

Change-Id: I0873d906c058203b83b8d4bbe5a4b274f05a26fd
2012-12-10 16:48:13 -08:00
..
inspectors (bug 42925) Inspector doesn't open properly 2012-12-10 16:48:13 -08:00
styles Removed all browser-specific box-shadow rules 2012-12-03 23:08:33 +01:00
tools Cleanup tool API 2012-10-31 11:10:17 -07:00
ve.ui.Context.js (bug 42925) Inspector doesn't open properly 2012-12-10 16:48:13 -08:00
ve.ui.Frame.js Clean up, fix errors on demos. 2012-12-04 08:58:20 +01:00
ve.ui.Inspector.js (bug 42925) Inspector doesn't open properly 2012-12-10 16:48:13 -08:00
ve.ui.InspectorFactory.js The great inspector and context rewrite of 2012 2012-11-19 15:21:27 -08:00
ve.ui.js Tools changes 2012-10-26 14:48:27 -07:00
ve.ui.Menu.js UI context reorganization, inspector rewrite, iframe refactor, icon generalization 2012-10-26 14:46:11 -07:00
ve.ui.Tool.js Cleanup tool API 2012-10-31 11:10:17 -07:00
ve.ui.Toolbar.js Added contextChange event to surface model, replacing annotationChange 2012-11-26 15:57:02 -08:00
ve.ui.ToolFactory.js Tools changes 2012-10-26 14:48:27 -07:00